org.apache.lucene.search
public class RangeQuery extends Query
[010 TO 120]
.
Version: $Id: RangeQuery.java 358693 2005-12-23 03:37:50Z yonik $
Constructor Summary | |
---|---|
RangeQuery(Term lowerTerm, Term upperTerm, boolean inclusive) Constructs a query selecting all terms greater than
lowerTerm but less than upperTerm .
|
Method Summary | |
---|---|
boolean | equals(Object o) Returns true iff o is equal to this. |
String | getField() Returns the field name for this query |
Term | getLowerTerm() Returns the lower term of this range query |
Term | getUpperTerm() Returns the upper term of this range query |
int | hashCode() Returns a hash code value for this object. |
boolean | isInclusive() Returns true if the range query is inclusive |
Query | rewrite(IndexReader reader) |
String | toString(String field) Prints a user-readable version of this query. |
lowerTerm
but less than upperTerm
.
There must be at least one term and either term may be null,
in which case there is no bound on that side, but if there are
two terms, both terms must be for the same field.o
is equal to this.true
if the range query is inclusive