elasticsearch7 [ElasticSearch] 데이터 입력, 조회, 수정, 삭제 getcurl -XGET -k -u elastic:elastic https://localhost:9200/classes putcurl -XPUT -k -u elastic:elastic https://localhost:9200/classesindex를 생성 할 수 있습니다.postcurl -XPOST -k -u elastic:elastic -H "Content-Type: application/x-ndjson" https://localhost:9200/class/_doc/1 -d '{"title":"Algorithm","professor":"John"}'document를 생성 할 수 있습니다. ID가 1인 문서를 추가하는 경우에는 _doc/1 을 붙혀줍니다. curl -XPOST -k -u elastic:e.. 2025. 3. 23. [ElasticSearch] 실행해보기 elastic search 를 도커로 실행 해 볼 꺼에요. 버전 8부터는 security 가 default 라서 주의하셔야 해요 lsm@i ~ % curl https://localhost:9200 curl: (60) SSL certificate problem: self signed certificate in certificate chainMore details here: https://curl.se/docs/sslcerts.html 일단 도커로 image 만들고 실행해보죠docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:8.7.0 9200 은 appl.. 2025. 3. 23. [ElasticSearch] mac 설치하기 Homebrew 를 통한 설치 방법brew tap elastic/tapbrew install elastic/tap/elasticsearch-full Docker를 통한 설치docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:8.12.2 Elastic search 가 실행되면 기본적으로 http://localhost:9200 주소로 접근할 수 있습니다. 2025. 3. 22. 이전 1 2 다음