| 12345678910111213141516171819202122 | [[query-dsl-ids-query]]=== Ids QueryFilters documents that only have the provided ids. Note, this queryuses the <<mapping-id-field,_id>> field.[source,js]--------------------------------------------------GET /_search{    "query": {        "ids" : {            "type" : "_doc",            "values" : ["1", "4", "100"]        }    }}    --------------------------------------------------// CONSOLEThe `type` is optional and can be omitted, and can also accept an arrayof values. If no type is specified, all types defined in the index mapping are tried.
 |