Apache Lucene.Net 2.4.0 Class Library API

Token Constructor (String, Int32, Int32, Int32)

Constructs a Token with the given term text, start and end offsets, and flags. 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,
   int flags
);

Parameters

text
term text
start
start offset
end
end offset
flags
the bits to set for this Token

See Also

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