Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector

    Sets an index term when docFreq >= docFreqThresh, or every interval terms. This should reduce seek time to high docFreq terms.

    Inheritance
    object
    VariableGapTermsIndexWriter.IndexTermSelector
    VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    VariableGapTermsIndexWriter.IndexTermSelector.IsIndexTerm(BytesRef, TermStats)

    NewField(FieldInfo)

    Called when a new field is started.

    Declaration
    public override void NewField(FieldInfo fieldInfo)
    Parameters
    Type Name Description
    FieldInfo fieldInfo
    Overrides
    VariableGapTermsIndexWriter.IndexTermSelector.NewField(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.