[[query-dsl-ids-query]] === IDs ++++ IDs ++++ Returns documents based on their IDs. This query uses document IDs stored in the <> field. ==== Example request [source,console] -------------------------------------------------- GET /_search { "query": { "ids" : { "values" : ["1", "4", "100"] } } } -------------------------------------------------- [[ids-query-top-level-parameters]] ==== Top-level parameters for `ids` `values`:: (Required, array of strings) An array of <>.