Returns documents based on their IDs. This query uses document IDs stored in the _id field.
_id
GET /_search { "query": { "ids" : { "values" : ["1", "4", "100"] } } }
ids
values
An array of document IDs.