Class FilteredDocIdSet
Abstract decorator class for a DocIdSet implementation that provides on-demand filtering/validation mechanism on a given DocIdSet.
Technically, this same functionality could be achieved with ChainedFilter (under contrib/misc), however the benefit of this class is it never materializes the full bitset for the filter. Instead, the Match(Int32) method is invoked on-demand, per docID visited during searching. If you know few docIDs will be visited, and the logic behind Match(Int32) is relatively costly, this may be a better way to filter than ChainedFilter.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public abstract class FilteredDocIdSet : DocIdSet
Constructors
Name | Description |
---|---|
FilteredDocIdSet(DocIdSet) | Constructor. |
Properties
Name | Description |
---|---|
IsCacheable | This DocIdSet implementation is cacheable if the inner set is cacheable. |
Methods
Name | Description |
---|---|
Iterator() | Implementation of the contract to build a DocIdSetIterator. |
Match(Int32) | Validation method to determine whether a docid should be in the result set. |