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 visitedConstructor and Description |
---|
FunctionMatchQuery(DoubleValuesSource source,
DoublePredicate filter)
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, toString
public FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter)
source
- a DoubleValuesSource
to use for valuesfilter
- the predicate to match againstpublic void visit(QueryVisitor visitor)
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight
in class Query
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.