Class FunctionMatchQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.queries.function.FunctionMatchQuery
-
public final class FunctionMatchQuery extends Query
A query that retrieves all documents with aDoubleValues
value matching a predicate This query works by a linear scan of the index, and is best used in conjunction with other queries that can restrict the number of documents visited
-
-
Constructor Summary
Constructors Constructor Description FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter)
Create a FunctionMatchQuery
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Weight
createWeight(IndexSearcher searcher, boolean needsScores, float boost)
boolean
equals(Object o)
int
hashCode()
String
toString(String field)
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Constructor Detail
-
FunctionMatchQuery
public FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter)
Create a FunctionMatchQuery- Parameters:
source
- aDoubleValuesSource
to use for valuesfilter
- the predicate to match against
-
-
Method Detail
-
createWeight
public Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
- Overrides:
createWeight
in classQuery
- Throws:
IOException
-
-