Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
The start and end character offset of a Token. More...
Inherits Lucene.Net.Util.IAttribute.
Inherited by Lucene.Net.Analysis.Token, and Lucene.Net.Analysis.Tokenattributes.OffsetAttribute.
Public Member Functions | |
void | SetOffset (int startOffset, int endOffset) |
Set the starting and ending offset. See StartOffset() and EndOffset() | |
Properties | |
int | StartOffset [get] |
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. | |
int | EndOffset [get] |
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 (endOffset - startOffset). | |
The start and end character offset of a Token.
Definition at line 25 of file IOffsetAttribute.cs.
void Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute.SetOffset | ( | int | startOffset, |
int | endOffset | ||
) |
Set the starting and ending offset. See StartOffset() and EndOffset()
Implemented in Lucene.Net.Analysis.Token, and Lucene.Net.Analysis.Tokenattributes.OffsetAttribute.
|
get |
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 (endOffset - startOffset).
Definition at line 46 of file IOffsetAttribute.cs.
|
get |
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.
Definition at line 33 of file IOffsetAttribute.cs.