id检索 ids query

根据其ID返回文档。该查询使用存储在该_id字段中的文档ID 

curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
  "query": {
    "ids" : {
      "values" : ["1", "4", "100"]
    }
  }
}
'
原文地址:https://www.cnblogs.com/Mint-diary/p/14499127.html