org.apache.lucene.search
Class RangeQuery
java.lang.Object
|
+--org.apache.lucene.search.Query
|
+--org.apache.lucene.search.RangeQuery
- All Implemented Interfaces:
- Serializable
- public final class RangeQuery
- extends Query
A Query that matches documents within an exclusive range.
- See Also:
- Serialized Form
Fields inherited from class org.apache.lucene.search.Query |
boost |
Constructor Summary |
RangeQuery(Term lowerTerm,
Term upperTerm,
boolean inclusive)
Constructs a query selecting all terms greater than
lowerTerm but less than upperTerm . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RangeQuery
public RangeQuery(Term lowerTerm,
Term upperTerm,
boolean inclusive)
- Constructs a query selecting all terms greater than
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 term, both terms must be for the same field.
toString
public String toString(String field)
- Prints a user-readable version of this query.
- Overrides:
toString
in class Query
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.