Constructs a Token with the given text, start and end offsets, & type. 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,
	string typ
)
Visual Basic
Public Sub New ( _
	text As String, _
	start As Integer, _
	end As Integer, _
	typ As String _
)
Visual C++
public:
Token(
	String^ text, 
	int start, 
	int end, 
	String^ typ
)

Parameters

text
Type: System..::..String
term text
start
Type: System..::..Int32
start offset
end
Type: System..::..Int32
end offset
typ
Type: System..::..String
token type

See Also