newSlowExactQuery

fun newSlowExactQuery(field: String, value: Long): Query

Create a query for matching an exact long value.

This query also works with fields that have indexed NumericDocValuesFields.

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 LongPoint.newExactQuery.

See also