Package org.apache.lucene.queries.function
Queries that compute score based upon a function.
-
Class Summary Class Description FunctionMatchQuery A query that retrieves all documents with aDoubleValues
value matching a predicateFunctionQuery Returns a score for each document based on a ValueSource, often some function of the value of a field.FunctionRangeQuery A Query wrapping aValueSource
that matches docs in which the values in the value source match a configured range.FunctionScoreQuery A query that wraps another query, and uses a DoubleValuesSource to replace or modify the wrapped query's scoreFunctionValues Represents field values as different types.FunctionValues.ValueFiller Abstraction of the logic required to fill the value of a specified doc into a reusableMutableValue
.IndexReaderFunctions Class exposing static helper methods for generating DoubleValuesSource instances over some IndexReader statisticsValueSource InstantiatesFunctionValues
for a particular reader.ValueSourceScorer Scorer
which returns the result ofFunctionValues.floatVal(int)
as the score for a document, and which filters out documents that don't matchValueSourceScorer.matches(int)
.