Interface IOffsetAttribute
The start and end character offset of a Token.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public interface IOffsetAttribute : IAttribute
Properties
Name | Description |
---|---|
EndOffset | Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is ( - StartOffset).
|
StartOffset | Returns this Token's starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between EndOffset and StartOffset may not be equal to termText.Length, as the term text may have been altered by a stemmer or some other filter. |
Methods
Name | Description |
---|---|
SetOffset(Int32, Int32) | Set the starting and ending offset. |