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"]
    }
  }
}
'

 

posted @ 2021-03-08 13:49  薄荷味日记  阅读(256)  评论(0编辑  收藏  举报