boolean

fun boolean(must: ConjunctionQuery? = null, should: DisjunctionQuery? = null, mustNot: DisjunctionQuery? = null): SearchQuery

A Boolean query

Searches for documents that match all of the must conditions and none of the mustNot conditions, giving precedence to documents matching the should conditions.