Class FilteredQuery.FilterStrategy
Abstract class that defines how the filter (DocIdSet) applied during document collection.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FilteredQuery.FilterStrategy
Methods
FilteredBulkScorer(AtomicReaderContext, Weight, bool, DocIdSet)
Returns a filtered BulkScorer based on this strategy. this is an optional method: the default implementation just calls FilteredScorer(AtomicReaderContext, Weight, DocIdSet) and wraps that into a BulkScorer.
Declaration
public virtual BulkScorer FilteredBulkScorer(AtomicReaderContext context, Weight weight, bool scoreDocsInOrder, DocIdSet docIdSet)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | the AtomicReaderContext for which to return the Scorer. |
Weight | weight | the FilteredQueryWeight to create the filtered scorer. |
bool | scoreDocsInOrder |
|
DocIdSet | docIdSet | the filter DocIdSet to apply |
Returns
Type | Description |
---|---|
BulkScorer | a filtered top scorer |
FilteredScorer(AtomicReaderContext, Weight, DocIdSet)
Returns a filtered Scorer based on this strategy.
Declaration
public abstract Scorer FilteredScorer(AtomicReaderContext context, Weight weight, DocIdSet docIdSet)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | the AtomicReaderContext for which to return the Scorer. |
Weight | weight | the FilteredQueryWeight to create the filtered scorer. |
DocIdSet | docIdSet | the filter DocIdSet to apply |
Returns
Type | Description |
---|---|
Scorer | a filtered scorer |
Exceptions
Type | Condition |
---|---|
IOException | if an IOException occurs |