idsQuery

fun idsQuery(ids: List<String>?)

creates IDs query

If ids is null or empty (or no value can be converted), no query is added and the enclosing query is left unchanged. Note that Elasticsearch itself treats an empty ids list as matching no document; this DSL treats it as "no constraint" instead.