org.apache.lucene.search
public class ConstantScoreRangeQuery extends Query
It does not have an upper bound on the number of clauses covered in the range.
If an endpoint is null, it is said to be "open". Either or both endpoints may be open. Open endpoints may not be exclusive (you can't select all but the first or last term without explicitly specifying the term to exclude.)
Constructor and Description |
---|
ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns true if
o is equal to this. |
String |
getField()
Returns the field name for this query
|
String |
getLowerVal()
Returns the value of the lower endpoint of this range query, null if open ended
|
String |
getUpperVal()
Returns the value of the upper endpoint of this range query, null if open ended
|
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
includesLower()
Returns
true if the lower endpoint is inclusive |
boolean |
includesUpper()
Returns
true if the upper endpoint is inclusive |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
String |
toString(String field)
Prints a user-readable version of this query.
|
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public String getField()
public String getLowerVal()
public String getUpperVal()
public boolean includesLower()
true
if the lower endpoint is inclusivepublic boolean includesUpper()
true
if the upper endpoint is inclusivepublic Query rewrite(IndexReader reader) throws IOException
Query
rewrite
in class Query
IOException
public boolean equals(Object o)
o
is equal to this.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.