Class VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
Sets an index term when docFreq >= docFreqThresh, or every interval terms. This should reduce seek time to high docFreq terms.
Inheritance
VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
Inherited Members
Namespace: Lucene.Net.Codecs.BlockTerms
Assembly: Lucene.Net.Codecs.dll
Syntax
public sealed class VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector : VariableGapTermsIndexWriter.IndexTermSelector
Constructors
EveryNOrDocFreqTermSelector(int, int)
Sets an index term when docFreq >= docFreqThresh, or every interval terms. This should reduce seek time to high docFreq terms.
Declaration
public EveryNOrDocFreqTermSelector(int docFreqThresh, int interval)
Parameters
| Type | Name | Description |
|---|---|---|
| int | docFreqThresh | |
| int | interval |
Methods
IsIndexTerm(BytesRef, TermStats)
Called sequentially on every term being written,
returning true if this term should be indexed.
Declaration
public override bool IsIndexTerm(BytesRef term, TermStats stats)
Parameters
| Type | Name | Description |
|---|---|---|
| BytesRef | term | |
| TermStats | stats |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
NewField(FieldInfo)
Called when a new field is started.
Declaration
public override void NewField(FieldInfo fieldInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldInfo | fieldInfo |