Package org.apache.solr.search.function
Class ValueSourceRangeFilter
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.Filter
-
- org.apache.solr.search.SolrFilter
-
- org.apache.solr.search.function.ValueSourceRangeFilter
-
public class ValueSourceRangeFilter extends SolrFilter
RangeFilter over a ValueSource.
-
-
Constructor Summary
Constructors Constructor Description ValueSourceRangeFilter(org.apache.lucene.queries.function.ValueSource valueSource, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateWeight(Map context, org.apache.lucene.search.IndexSearcher searcher)Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context.booleanequals(Object o)org.apache.lucene.search.DocIdSetgetDocIdSet(Map context, org.apache.lucene.index.LeafReaderContext readerContext, org.apache.lucene.util.Bits acceptDocs)StringgetLowerVal()StringgetUpperVal()org.apache.lucene.queries.function.ValueSourcegetValueSource()inthashCode()booleanisIncludeLower()booleanisIncludeUpper()StringtoString(String field)-
Methods inherited from class org.apache.solr.search.SolrFilter
getDocIdSet
-
Methods inherited from class org.apache.solr.search.Filter
createWeight
-
-
-
-
Method Detail
-
getValueSource
public org.apache.lucene.queries.function.ValueSource getValueSource()
-
getLowerVal
public String getLowerVal()
-
getUpperVal
public String getUpperVal()
-
isIncludeLower
public boolean isIncludeLower()
-
isIncludeUpper
public boolean isIncludeUpper()
-
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(Map context, org.apache.lucene.index.LeafReaderContext readerContext, org.apache.lucene.util.Bits acceptDocs) throws IOException
- Specified by:
getDocIdSetin classSolrFilter- Throws:
IOException
-
createWeight
public void createWeight(Map context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
Description copied from class:SolrFilterImplementations should propagate createWeight to sub-ValueSources which can store weight info in the context. The context object will be passed to getDocIdSet() where this info can be retrieved.- Specified by:
createWeightin classSolrFilter- Throws:
IOException
-
toString
public String toString(String field)
- Specified by:
toStringin classorg.apache.lucene.search.Query
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
-