filterDsl
Adds queries to the filter occurrence.
Documents must match all queries in this occurrence. These queries do not affect scoring and are executed in filter context for better performance.
Example
val document = Metamodels.product
BoolQuery.of {
it.boolQueryDsl {
filterDsl {
document.price.range(Range.closed(100.0, 500.0))
document.inStock term true
}
}
}Content copied to clipboard
See also
for available query types