MappingCharFilter Class

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.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.search.documents.indexes._generated.models._models_py3.CharFilter
MappingCharFilter

Constructor

MappingCharFilter(*, name: str, mappings: List[str], **kwargs)

Parameters

odata_type
str
Required

Required. Identifies the concrete type of the char filter.Constant filled by server.

name
str
Required

Required. 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
list[str]
Required

Required. A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b").