OpenSearch/docs/reference/query-dsl/ids-query.asciidoc

19 lines
385 B
Plaintext

[[query-dsl-ids-query]]
=== Ids Query
Filters documents that only have the provided ids. Note, this query
uses the <<mapping-id-field,_id>> field.
[source,js]
--------------------------------------------------
GET /_search
{
"query": {
"ids" : {
"values" : ["1", "4", "100"]
}
}
}
--------------------------------------------------
// CONSOLE