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
Namespace: Lucene.Net.Analysis.TokenAttributes
Assembly: Lucene.Net.dll
Syntax
public interface IPositionLengthAttribute : IAttribute
Properties
| Improve this Doc View SourcePositionLength
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. |