Lucene.Net 1.4.3 Class Library

Token Methods

The methods of the Token class are listed below. For a complete list of Token class members, see the Token Members topic.

Public Instance Methods

EndOffsetReturns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetPositionIncrementReturns the position increment of this Token.
GetType (inherited from Object) Gets the Type of the current instance.
SetPositionIncrement 
StartOffsetReturns 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.
TermTextReturns the Token's term text.
ToString (inherited from Object) Returns a String that represents the current Object.
TypeReturns this Token's lexical type. Defaults to "word".

See Also

Token Class | Lucene.Net.Analysis Namespace