!! 모든 요청에는 ApiKey를 헤더에 추가해줘야 한다.

1. 데이터 삽입 (Indexing Documents)

POST /test-index2/_doc/
{
  "name": "John Doe",
  "age": 30,
  "interests": ["football", "music"]
}

Untitled

Untitled

POST /test-index2/_doc/{ID 번호 적기}
POST /test-index2/_doc/1
{
  "name": "John Doe",
  "age": 30,
  "interests": ["football", "music"]
}

2. 검색 (Searching)

GET /test-index2/_search
{
  "query": {
    "match_all": {}
  }
}