SearchModelFactory.AsciiFoldingTokenFilter Method

Definition

Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is implemented using Apache Lucene.

public static Azure.Search.Documents.Indexes.Models.AsciiFoldingTokenFilter AsciiFoldingTokenFilter(string name = default, bool? preserveOriginal = default);
static member AsciiFoldingTokenFilter : string * Nullable<bool> -> Azure.Search.Documents.Indexes.Models.AsciiFoldingTokenFilter
Public Shared Function AsciiFoldingTokenFilter (Optional name As String = Nothing, Optional preserveOriginal As Nullable(Of Boolean) = Nothing) As AsciiFoldingTokenFilter

Parameters

name
String

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

preserveOriginal
Nullable<Boolean>

A value indicating whether the original token will be kept. Default is false.

Returns

A new AsciiFoldingTokenFilter instance for mocking.

Applies to