public final class FunctionMatchQuery extends Query
DoubleValues 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 and Description |
|---|
FunctionMatchQuery(DoubleValuesSource source,
DoublePredicate filter)
Create a FunctionMatchQuery with default TwoPhaseIterator matchCost -
DEFAULT_MATCH_COST = |
FunctionMatchQuery(DoubleValuesSource source,
DoublePredicate filter,
float matchCost)
Create a FunctionMatchQuery
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString(String field) |
void |
visit(QueryVisitor visitor) |
classHash, rewrite, sameClassAs, toStringpublic FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter)
DEFAULT_MATCH_COST = source - a DoubleValuesSource to use for valuesfilter - the predicate to match againstpublic FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter, float matchCost)
source - a DoubleValuesSource to use for valuesfilter - the predicate to match againstmatchCost - to be returned by TwoPhaseIterator.matchCost()public void visit(QueryVisitor visitor)
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight in class QueryIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.