Class FilteredQuery.FilterStrategy
Abstract class that defines how the filter (DocIdSet) applied during document collection.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public abstract class FilterStrategy
Methods
| Improve this Doc View SourceFilteredBulkScorer(AtomicReaderContext, Weight, Boolean, 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 FilteredQuery Weight to create the filtered scorer. |
| System.Boolean | 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 FilteredQuery Weight to create the filtered scorer. |
| DocIdSet | docIdSet | the filter DocIdSet to apply |
Returns
| Type | Description |
|---|---|
| Scorer | a filtered scorer |
Exceptions
| Type | Condition |
|---|---|
| System.IO.IOException | if an System.IO.IOException occurs |