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(AtomicReaderContext context,
Weight weight,
boolean scoreDocsInOrder,
DocIdSet docIdSet)
Returns a filtered
BulkScorer based on this
strategy. |
abstract Scorer |
filteredScorer(AtomicReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
Scorer based on this strategy. |
public abstract Scorer filteredScorer(AtomicReaderContext context, Weight weight, DocIdSet docIdSet) throws IOException
Scorer
based on this strategy.context
- the AtomicReaderContext
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(AtomicReaderContext context, Weight weight, boolean scoreDocsInOrder, DocIdSet docIdSet) throws IOException
BulkScorer
based on this
strategy. This is an optional method: the default
implementation just calls filteredScorer(org.apache.lucene.index.AtomicReaderContext, org.apache.lucene.search.Weight, org.apache.lucene.search.DocIdSet)
and
wraps that into a BulkScorer.context
- the AtomicReaderContext
for which to return the Scorer
.weight
- the FilteredQuery
Weight
to create the filtered scorer.docIdSet
- the filter DocIdSet
to applyIOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.