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.)
Version: $Id: ConstantScoreRangeQuery.java 472959 2006-11-09 16:21:50Z yonik $
Constructor Summary | |
---|---|
ConstantScoreRangeQuery(String fieldName, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) |
Method Summary | |
---|---|
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) |
String | toString(String field) Prints a user-readable version of this query. |
o
is equal to this.true
if the lower endpoint is inclusivetrue
if the upper endpoint is inclusive