SearchModelFactory.CustomNormalizer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows you to configure normalization for filterable, sortable, and facetable fields, which by default operate with strict matching. This is a user-defined configuration consisting of at least one or more filters, which modify the token that is stored.
public static Azure.Search.Documents.Indexes.Models.CustomNormalizer CustomNormalizer(string name = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.TokenFilterName> tokenFilters = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.CharFilterName> charFilters = default);
static member CustomNormalizer : string * seq<Azure.Search.Documents.Indexes.Models.TokenFilterName> * seq<Azure.Search.Documents.Indexes.Models.CharFilterName> -> Azure.Search.Documents.Indexes.Models.CustomNormalizer
Public Shared Function CustomNormalizer (Optional name As String = Nothing, Optional tokenFilters As IEnumerable(Of TokenFilterName) = Nothing, Optional charFilters As IEnumerable(Of CharFilterName) = Nothing) As CustomNormalizer
Parameters
- name
- String
The name of the char 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.
- tokenFilters
- IEnumerable<TokenFilterName>
A list of token filters used to filter out or modify the input token. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed.
- charFilters
- IEnumerable<CharFilterName>
A list of character filters used to prepare input text before it is processed. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed.
Returns
A new CustomNormalizer instance for mocking.