Fork me on GitHub
  • API

    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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    VariableGapTermsIndexWriter.IndexTermSelector
    VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
    VariableGapTermsIndexWriter.EveryNTermSelector
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.