BackEnd/Elasticsearch API
-
DocumentBackEnd/Elasticsearch API 2025. 3. 9. 10:00
Create# create an indexPUT /my_index{ "settings": { "index": { "number_of_shards": 1, // You can specify the number of shards here "number_of_replicas": 1 // Set to 0 for no replicas } }}# crate a documentPOST /my_index/_doc/100{ "title": "Elasticsearch Advanced", "author": "Anthony K", "publish_date": "2024-05-20", "tags": ["search", "analytics"]} RetrieveGET /my_index/..
-
IntroductionBackEnd/Elasticsearch API 2025. 3. 8. 12:00
Overview Backend Developer, Server Developer로 실무에서 사용하는 Elasticsearch API에 대해 정리합니다. 모든 API는 Kibana Dev Tools에서 확인 가능합니다. Elasticsearch에 대한 상세 정보는 Elasticsearch 포스팅을 참고하시면 됩니다. ClusterGET /_cluster/health초록색: 모든 주 샤드와 복제 샤드가 할당되어 있는 상태입니다.노란색: 모든 주 샤드는 할당되었지만 일부 복제 샤드는 할당되지 않은 상태입니다.빨간색: 일부 주 샤드가 할당되지 않은 상태입니다. IndexGET /_cat/indices?vElasticsearch 클러스터의 모든 인덱스를 나열하며, 각 인덱스의 상태, 문서 수, 총 크기 등을 표..