Dela via


SearchModelFactory.AnalyzedTokenInfo(String, Int32, Int32, Int32) Method

Definition

Initializes a new instance of AnalyzedTokenInfo.

public static Azure.Search.Documents.Indexes.Models.AnalyzedTokenInfo AnalyzedTokenInfo (string token, int startOffset, int endOffset, int position);
static member AnalyzedTokenInfo : string * int * int * int -> Azure.Search.Documents.Indexes.Models.AnalyzedTokenInfo
Public Shared Function AnalyzedTokenInfo (token As String, startOffset As Integer, endOffset As Integer, position As Integer) As AnalyzedTokenInfo

Parameters

token
String

The token returned by the analyzer.

startOffset
Int32

The index of the first character of the token in the input text.

endOffset
Int32

The index of the last character of the token in the input text.

position
Int32

The position of the token in the input text relative to other tokens. The first token in the input text has position 0, the next has position 1, and so on. Depending on the analyzer used, some tokens might have the same position, for example if they are synonyms of each other.

Returns

A new AnalyzedTokenInfo instance for mocking.

Applies to