./init.sh
./clean.sh
https://qiita.com/nobutaka/items/6308ea3bfd0aa0c58fdb
docker-compose up -d
※6系以降 Content-Type 必須
curl 'http://localhost:9200/_cluster/health?pretty=true'
- PUT or POST
- https://{エンドポイント}/{index名}
- mapping.json
- GET
- https://{エンドポイント}/{index名}/{type名}/_mapping
- PUT or POST
- https://{エンドポイント}/{index名}/{type名}
- sample_doc.json
curl -H "Content-Type: application/json" -XPOST localhost:9200/index/type --data-binary @sample_doc_2.json
- PUT or POST
- https://{エンドポイント}/{index名}/_mapping
- dynamic_strict.json
- GET or POST
- https://{エンドポイント}/{検索対象index名}/_search
- https://{エンドポイント}/{検索対象index名,検索対象index名}/_search
- https://{エンドポイント}/{検索対象index名*}/_search
- https://{エンドポイント}/_search
- query.json
curl -H "Content-Type: application/json" -XGET localhost:9200/index/_search -d @match_all.json
curl -H "Content-Type: application/json" -XGET localhost:9200/index/_search -d @random_score.json