Class DefaultBloomFilterFactory
Default policy is to allocate a bitset with 10% saturation given a unique term per document. Bits are set via MurmurHash2 hashing function.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Codecs.Bloom
Assembly: Lucene.Net.Codecs.dll
Syntax
public class DefaultBloomFilterFactory : BloomFilterFactory
Methods
GetSetForField(SegmentWriteState, FieldInfo)
Default policy is to allocate a bitset with 10% saturation given a unique term per document. Bits are set via MurmurHash2 hashing function.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override FuzzySet GetSetForField(SegmentWriteState state, FieldInfo info)
Parameters
Type | Name | Description |
---|---|---|
SegmentWriteState | state | The content to be indexed. |
FieldInfo | info | The field requiring a BloomFilter. |
Returns
Type | Description |
---|---|
FuzzySet | An appropriately sized set or |
Overrides
IsSaturated(FuzzySet, FieldInfo)
Used to determine if the given filter has reached saturation and should be retired i.e. not saved any more.
Declaration
public override bool IsSaturated(FuzzySet bloomFilter, FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FuzzySet | bloomFilter | The bloomFilter being tested. |
FieldInfo | fieldInfo | The field with which this filter is associated. |
Returns
Type | Description |
---|---|
bool | true if the set has reached saturation and should be retired. |