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
|
| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores,
float boost) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString(String field) |
classHash, rewrite, sameClassAs, toStringpublic FunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter)
source - a DoubleValuesSource to use for valuesfilter - the predicate to match againstpublic Weight createWeight(IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight in class QueryIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.