newSlowRangeQuery
fun newSlowRangeQuery(field: String, lowerValue: BytesRef?, upperValue: BytesRef?, lowerInclusive: Boolean, upperInclusive: Boolean): Query
Create a range query that matches all documents whose value is between lowerValue and upperValue.
This query also works with fields that have indexed SortedDocValuesFields.
NOTE: Such queries cannot efficiently advance to the next match, which makes them slow if they are not ANDed with a selective query. As a consequence, they are best used wrapped in an IndexOrDocValuesQuery, alongside a range query that executes on points, such as BinaryPoint.newRangeQuery.