Show / Hide Table of Contents

    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.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    VariableGapTermsIndexWriter.IndexTermSelector
    VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
    VariableGapTermsIndexWriter.EveryNTermSelector
    Namespace: Lucene.Net.Codecs.BlockTerms
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public abstract class IndexTermSelector : object

    Methods

    | Improve this Doc View Source

    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
    System.Boolean
    | Improve this Doc View Source

    NewField(FieldInfo)

    Called when a new field is started.

    Declaration
    public abstract void NewField(FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)