mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 23:57:20 -04:00
18 lines
385 B
Text
18 lines
385 B
Text
[[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
|