@Deprecated public final class DocValuesRangeQuery extends Query
PointRangeQuery.
NOTE: This query is typically best used within a
IndexOrDocValuesQuery alongside a query that uses an indexed
structure such as points or terms,
which allows to run the query on doc values when that would be more
efficient, and using an index otherwise.| Modifier and Type | Method and Description |
|---|---|
Weight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Deprecated.
|
boolean |
equals(Object other)
Deprecated.
|
String |
getField()
Deprecated.
|
Object |
getLowerVal()
Deprecated.
|
Object |
getUpperVal()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isIncludeLower()
Deprecated.
|
boolean |
isIncludeUpper()
Deprecated.
|
static Query |
newBytesRefRange(String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
|
static Query |
newLongRange(String field,
Long lowerVal,
Long upperVal,
boolean includeLower,
boolean includeUpper)
|
Query |
rewrite(IndexReader reader)
Deprecated.
|
String |
toString(String field)
Deprecated.
|
classHash, sameClassAs, toString@Deprecated 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)
SortedSetDocValuesField.newRangeQuery(java.lang.String, org.apache.lucene.util.BytesRef, org.apache.lucene.util.BytesRef, boolean, boolean)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 QueryIOExceptionpublic Weight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
createWeight in class QueryIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.