org.apache.lucene.search
public class RangeQuery extends Query
Version: $Id: RangeQuery.java,v 1.12 2004/03/29 22:48:03 cutting Exp $
Constructor Summary | |
---|---|
RangeQuery(Term lowerTerm, Term upperTerm, boolean inclusive) Constructs a query selecting all terms greater than
lowerTerm but less than upperTerm .
|
Method Summary | |
---|---|
Query | combine(Query[] queries) |
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 |
boolean | isInclusive() Returns true if the range query is inclusive |
Query | rewrite(IndexReader reader)
FIXME: Describe rewrite method here.
|
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.true
if the range query is inclusiverewrite
method here.
Parameters: reader an IndexReader
value
Returns: a Query
value
Throws: IOException if an error occurs