Constructs a Token with the given term text, and start & 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.

Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public Token(
	string text,
	int start,
	int end
)
Visual Basic
Public Sub New ( _
	text As String, _
	start As Integer, _
	end As Integer _
)
Visual C++
public:
Token(
	String^ text, 
	int start, 
	int end
)

Parameters

text
Type: System..::..String
term text
start
Type: System..::..Int32
start offset
end
Type: System..::..Int32
end offset

See Also