org.apache.solr.search
Class SolrFilter
java.lang.Object
org.apache.lucene.search.Filter
org.apache.solr.search.SolrFilter
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ValueSourceRangeFilter
public abstract class SolrFilter
- extends org.apache.lucene.search.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.
- See Also:
- Serialized Form
Method Summary |
abstract void |
createWeight(Map context,
org.apache.lucene.search.Searcher searcher)
Implementations should propagate createWeight to sub-ValueSources which can store weight info in the context. |
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
|
abstract org.apache.lucene.search.DocIdSet |
getDocIdSet(Map context,
org.apache.lucene.index.IndexReader reader)
|
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,
org.apache.lucene.search.Searcher 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 org.apache.lucene.search.DocIdSet getDocIdSet(Map context,
org.apache.lucene.index.IndexReader reader)
throws IOException
- Throws:
IOException
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
throws IOException
- Specified by:
getDocIdSet
in class org.apache.lucene.search.Filter
- Throws:
IOException
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.