SearchModelFactory.MicrosoftLanguageTokenizer Method

Definition

Divides text using language-specific rules.

public static Azure.Search.Documents.Indexes.Models.MicrosoftLanguageTokenizer MicrosoftLanguageTokenizer(string name = default, int? maxTokenLength = default, bool? isSearchTokenizer = default, Azure.Search.Documents.Indexes.Models.MicrosoftTokenizerLanguage? language = default);
static member MicrosoftLanguageTokenizer : string * Nullable<int> * Nullable<bool> * Nullable<Azure.Search.Documents.Indexes.Models.MicrosoftTokenizerLanguage> -> Azure.Search.Documents.Indexes.Models.MicrosoftLanguageTokenizer
Public Shared Function MicrosoftLanguageTokenizer (Optional name As String = Nothing, Optional maxTokenLength As Nullable(Of Integer) = Nothing, Optional isSearchTokenizer As Nullable(Of Boolean) = Nothing, Optional language As Nullable(Of MicrosoftTokenizerLanguage) = Nothing) As MicrosoftLanguageTokenizer

Parameters

name
String

The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

maxTokenLength
Nullable<Int32>

The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255.

isSearchTokenizer
Nullable<Boolean>

A value indicating how the tokenizer is used. Set to true if used as the search tokenizer, set to false if used as the indexing tokenizer. Default is false.

language
Nullable<MicrosoftTokenizerLanguage>

The language to use. The default is English.

Returns

A new MicrosoftLanguageTokenizer instance for mocking.

Applies to