org.apache.solr.search
Class SolrFilter
java.lang.Object
org.apache.lucene.search.Filter
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrFilter
public SolrFilter()
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-2012 Apache Software Foundation. All Rights Reserved.