Fork me on GitHub
  • API

    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
    Exceptions
    Type Condition
    System.ArgumentException

    if value is set to zero or negative.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.