Show / Hide Table of Contents

    Interface IPositionLengthAttribute

    Determines how many positions this token spans. Very few analyzer components actually produce this attribute, and indexing ignores it, but it's useful to express the graph structure naturally produced by decompounding, word splitting/joining, synonym filtering, etc.

    NOTE: this is optional, and most analyzers don't change the default value (1).

    Inherited Members
    IAttribute.CopyTo(IAttribute)
    Namespace: Lucene.Net.Analysis.TokenAttributes
    Assembly: Lucene.Net.dll
    Syntax
    public interface IPositionLengthAttribute : IAttribute

    Properties

    | Improve this Doc View Source

    PositionLength

    Gets or Sets the position length of this Token (how many positions this token spans).

    The default value is one.

    Declaration
    int PositionLength { get; set; }
    Property Value
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)