public abstract static class FilteredQuery.FilterStrategy extends Object
DocIdSet) applied during document collection.| Constructor and Description |
|---|
FilteredQuery.FilterStrategy() |
| Modifier and Type | Method and Description |
|---|---|
BulkScorer |
filteredBulkScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
BulkScorer based on this
strategy. |
abstract Scorer |
filteredScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
Scorer based on this strategy. |
public abstract Scorer filteredScorer(LeafReaderContext context, Weight weight, DocIdSet docIdSet) throws IOException
Scorer based on this strategy.context - the LeafReaderContext for which to return the Scorer.weight - the FilteredQuery Weight to create the filtered scorer.docIdSet - the filter DocIdSet to applyIOException - if an IOException occurspublic BulkScorer filteredBulkScorer(LeafReaderContext context, Weight weight, DocIdSet docIdSet) throws IOException
BulkScorer based on this
strategy. This is an optional method: the default
implementation just calls filteredScorer(org.apache.lucene.index.LeafReaderContext, org.apache.lucene.search.Weight, org.apache.lucene.search.DocIdSet) and
wraps that into a BulkScorer.context - the LeafReaderContext for which to return the Scorer.weight - the FilteredQuery Weight to create the filtered scorer.docIdSet - the filter DocIdSet to applyIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.