org.apache.solr.search
Class SolrFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.apache.solr.search.SolrFilter
Direct Known Subclasses:
ValueSourceRangeFilter

public abstract class SolrFilter
extends Filter

A SolrFilter extends the Lucene Filter and adds extra semantics such as passing on weight context info for function queries. Experimental and subject to change.


Constructor Summary
SolrFilter()
           
 
Method Summary
abstract  void createWeight(Map context, IndexSearcher searcher)
          Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context.
 DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs)
           
abstract  DocIdSet getDocIdSet(Map context, AtomicReaderContext readerContext, Bits acceptDocs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrFilter

public SolrFilter()
Method Detail

createWeight

public abstract void createWeight(Map context,
                                  IndexSearcher searcher)
                           throws IOException
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.

Throws:
IOException

getDocIdSet

public abstract DocIdSet getDocIdSet(Map context,
                                     AtomicReaderContext readerContext,
                                     Bits acceptDocs)
                              throws IOException
Throws:
IOException

getDocIdSet

public DocIdSet getDocIdSet(AtomicReaderContext context,
                            Bits acceptDocs)
                     throws IOException
Specified by:
getDocIdSet in class Filter
Throws:
IOException


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.