Apache Lucene.Net 2.4.0 Class Library API

Token Constructor (String, Int32, Int32)

Constructs a Token with the given term text, and start and end offsets. The type defaults to "word." NOTE: for better indexing speed you should instead use the char[] termBuffer methods to set the term text.

public Token(
   string text,
   int start,
   int end
);

Parameters

text
term text
start
start offset
end
end offset

See Also

Token Class | Lucene.Net.Analysis Namespace | Token Constructor Overload List