0.添加一個索引
curl -i -XPUT http://172.31.250.16:10004/test_index/user/1 -d '{ "name": "小明", "email": "[email protected]", "tags": ["like","walk","football"] }'
1.查詢所有索引
curl -XGET http://172.31.250.16:10004/_cat/indices\?v
2.查詢所有文檔
curl -i -XGET http://192.168.11.119:9200/test_index/user/_search\?pretty -d ' { "query": { "match_all": { } } }