Class VariableGapTermsIndexWriter.IndexTermSelector
Hook for selecting which terms should be placed in the terms index.
NewField(FieldInfo) is called at the start of each new field, and IsIndexTerm(BytesRef, TermStats) for each term in that field.Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
VariableGapTermsIndexWriter.IndexTermSelector
Inherited Members
Namespace: Lucene.Net.Codecs.BlockTerms
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class VariableGapTermsIndexWriter.IndexTermSelector
Methods
IsIndexTerm(BytesRef, TermStats)
Called sequentially on every term being written,
returning true
if this term should be indexed.
Declaration
public abstract bool IsIndexTerm(BytesRef term, TermStats stats)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | term | |
TermStats | stats |
Returns
Type | Description |
---|---|
bool |
NewField(FieldInfo)
Called when a new field is started.
Declaration
public abstract void NewField(FieldInfo fieldInfo)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | fieldInfo |