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.AnalysisAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public Token( string text, int start, int end, int flags ) |
Visual Basic |
---|
Public Sub New ( _ text As String, _ start As Integer, _ end As Integer, _ flags As Integer _ ) |
Visual C++ |
---|
public: Token( String^ text, int start, int end, int flags ) |
Parameters
- text
- Type: System..::..String
[Missing <param name="text"/> documentation for "M:Lucene.Net.Analysis.Token.#ctor(System.String,System.Int32,System.Int32,System.Int32)"]
- start
- Type: System..::..Int32
[Missing <param name="start"/> documentation for "M:Lucene.Net.Analysis.Token.#ctor(System.String,System.Int32,System.Int32,System.Int32)"]
- end
- Type: System..::..Int32
[Missing <param name="end"/> documentation for "M:Lucene.Net.Analysis.Token.#ctor(System.String,System.Int32,System.Int32,System.Int32)"]
- flags
- Type: System..::..Int32
token type bits