0. add an index
curl -i -XPUT http://172.31.250.16:10004/test_index/user/1 -d '{ "name": "小明", "email": "[email protected]", "tags": ["like","walk","football"] }'
1. All inquiries index
curl -XGET http://172.31.250.16:10004/_cat/indices\?v
2. Query all documents
curl -i -XGET http://192.168.11.119:9200/test_index/user/_search\?pretty -d ' { "query": { "match_all": { } } }
Reference: https://www.codercto.com/a/66299.html