|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Query org.apache.jackrabbit.core.query.lucene.RangeQuery
Implements a variant of the lucene class RangeQuery
.
This class does not rewrite to basic TermQuery
but will calculate the matching documents itself. That way a
TooManyClauses
can be avoided.
Constructor Summary | |
RangeQuery(org.apache.lucene.index.Term lowerTerm,
org.apache.lucene.index.Term upperTerm,
boolean inclusive)
Creates a new RangeQuery. |
Method Summary | |
protected org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher)
Creates the Weight for this query. |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader)
Tries to rewrite this query into a standard lucene RangeQuery. |
String |
toString(String field)
Returns a string representation of this query. |
Methods inherited from class org.apache.lucene.search.Query |
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RangeQuery(org.apache.lucene.index.Term lowerTerm, org.apache.lucene.index.Term upperTerm, boolean inclusive)
null
, but not both!
lowerTerm
- the lower term of the interval, or null
upperTerm
- the upper term of the interval, or null
.inclusive
- if true
the interval is inclusive.Method Detail |
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
reader
- the index reader.
IOException
- if an error occurs.protected org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
Weight
for this query.
searcher
- the searcher to use for the Weight
.
Weigth
for this query.public String toString(String field)
field
- the field name for which to create a string representation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |