原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/query-dsl-ids-query.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
IDsedit
Returns documents based on their IDs. This query uses document IDs stored in
the _id
field.
Example requestedit
GET /_search { "query": { "ids" : { "values" : ["1", "4", "100"] } } }
Top-level parameters for ids
edit
-
values
- (Required, array of strings) An array of document IDs.