elasticsearch 查詢所有文檔


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": {
                }
  }
}

 

參考:https://www.codercto.com/a/66299.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM