예제: Elasticsearch에 데이터 넣기

curl -X POST "43.201.88.182:9200/test/_doc" -H "Content-Type: application/json" -d'
{
  "user": "john",
  "post_date": "2021-12-15T14:12:12",
  "message": "trying out Elasticsearch"
}
'

이 예제에서는 test 인덱스에 다음과 같은 필드를 가진 새로운 문서를 생성합니다:

주의사항