public final class DocValuesRangeQuery extends Query
PointRangeQuery
.
NOTE: be very careful using this query: it is
typically much slower than using TermsQuery
,
but in certain specialized cases may be faster.
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores) |
boolean |
equals(Object other) |
String |
getField() |
Object |
getLowerVal() |
Object |
getUpperVal() |
int |
hashCode() |
boolean |
isIncludeLower() |
boolean |
isIncludeUpper() |
static Query |
newBytesRefRange(String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
Create a new numeric range query on a numeric doc-values field.
|
static Query |
newLongRange(String field,
Long lowerVal,
Long upperVal,
boolean includeLower,
boolean includeUpper)
Create a new numeric range query on a numeric doc-values field.
|
Query |
rewrite(IndexReader reader) |
String |
toString(String field) |
classHash, sameClassAs, toString
public static Query newLongRange(String field, Long lowerVal, Long upperVal, boolean includeLower, boolean includeUpper)
DocValuesType.NUMERIC
or
DocValuesType.SORTED_NUMERIC
doc values.public static Query newBytesRefRange(String field, BytesRef lowerVal, BytesRef upperVal, boolean includeLower, boolean includeUpper)
DocValuesType.SORTED
or
DocValuesType.SORTED_SET
doc values.public String getField()
public Object getLowerVal()
public Object getUpperVal()
public boolean isIncludeLower()
public boolean isIncludeUpper()
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
createWeight
in class Query
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.