org.apache.solr.search.function
Class ValueSourceRangeFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.apache.solr.search.SolrFilter
          extended by org.apache.solr.search.function.ValueSourceRangeFilter
All Implemented Interfaces:
Serializable

public class ValueSourceRangeFilter
extends SolrFilter

RangeFilter over a ValueSource.

See Also:
Serialized Form

Constructor Summary
ValueSourceRangeFilter(ValueSource valueSource, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
           
 
Method Summary
 void createWeight(Map context, Searcher searcher)
          Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context.
 boolean equals(Object o)
           
 DocIdSet getDocIdSet(Map context, IndexReader reader)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.apache.solr.search.SolrFilter
getDocIdSet
 
Methods inherited from class org.apache.lucene.search.Filter
bits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueSourceRangeFilter

public ValueSourceRangeFilter(ValueSource valueSource,
                              String lowerVal,
                              String upperVal,
                              boolean includeLower,
                              boolean includeUpper)
Method Detail

getDocIdSet

public DocIdSet getDocIdSet(Map context,
                            IndexReader reader)
                     throws IOException
Specified by:
getDocIdSet in class SolrFilter
Throws:
IOException

createWeight

public void createWeight(Map context,
                         Searcher searcher)
                  throws IOException
Description copied from class: SolrFilter
Implementations 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:
createWeight in class SolrFilter
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 Apache Software Foundation. All Rights Reserved.