Package org.apache.solr.query
Class SolrRangeQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.ExtendedQueryBase
-
- org.apache.solr.query.SolrRangeQuery
-
- All Implemented Interfaces:
DocSetProducer
,ExtendedQuery
public final class SolrRangeQuery extends ExtendedQueryBase implements DocSetProducer
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description SolrRangeQuery(String field, org.apache.lucene.util.BytesRef lower, org.apache.lucene.util.BytesRef upper, boolean includeLower, boolean includeUpper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocSet
createDocSet(SolrIndexSearcher searcher)
org.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
boolean
equals(Object obj)
String
getField()
org.apache.lucene.util.BytesRef
getLower()
org.apache.lucene.index.TermsEnum
getTermsEnum(org.apache.lucene.index.LeafReaderContext ctx)
org.apache.lucene.util.BytesRef
getUpper()
int
hashCode()
boolean
includeLower()
boolean
includeUpper()
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
String
toString(String field)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
-
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getCache, getCost, getOptions, getOptionsString, setCache, setCost
-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery
-
-
-
-
Constructor Detail
-
SolrRangeQuery
public SolrRangeQuery(String field, org.apache.lucene.util.BytesRef lower, org.apache.lucene.util.BytesRef upper, boolean includeLower, boolean includeUpper)
-
-
Method Detail
-
getField
public String getField()
-
getLower
public org.apache.lucene.util.BytesRef getLower()
-
getUpper
public org.apache.lucene.util.BytesRef getUpper()
-
includeLower
public boolean includeLower()
-
includeUpper
public boolean includeUpper()
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
toString
public String toString(String field)
- Overrides:
toString
in classExtendedQueryBase
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Specified by:
visit
in classorg.apache.lucene.search.Query
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
- Overrides:
rewrite
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
IOException
-
createDocSet
public DocSet createDocSet(SolrIndexSearcher searcher) throws IOException
- Specified by:
createDocSet
in interfaceDocSetProducer
- Throws:
IOException
-
getTermsEnum
public org.apache.lucene.index.TermsEnum getTermsEnum(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
- Throws:
IOException
-
-