SearchModelFactory.MappingCharFilter 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.
A character filter that applies mappings defined with the mappings option. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string. This character filter is implemented using Apache Lucene.
public static Azure.Search.Documents.Indexes.Models.MappingCharFilter MappingCharFilter(string name = default, System.Collections.Generic.IEnumerable<string> mappings = default);
static member MappingCharFilter : string * seq<string> -> Azure.Search.Documents.Indexes.Models.MappingCharFilter
Public Shared Function MappingCharFilter (Optional name As String = Nothing, Optional mappings As IEnumerable(Of String) = Nothing) As MappingCharFilter
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.
- mappings
- IEnumerable<String>
A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b").
Returns
A new MappingCharFilter instance for mocking.