Share via


MappingCharFilter Class

Definition

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 class MappingCharFilter : Azure.Search.Documents.Indexes.Models.CharFilter
public class MappingCharFilter : Azure.Search.Documents.Indexes.Models.CharFilter, System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.MappingCharFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.MappingCharFilter>
type MappingCharFilter = class
    inherit CharFilter
type MappingCharFilter = class
    inherit CharFilter
    interface IJsonModel<MappingCharFilter>
    interface IPersistableModel<MappingCharFilter>
Public Class MappingCharFilter
Inherits CharFilter
Public Class MappingCharFilter
Inherits CharFilter
Implements IJsonModel(Of MappingCharFilter), IPersistableModel(Of MappingCharFilter)
Inheritance
MappingCharFilter
Implements

Constructors

MappingCharFilter(String, IEnumerable<String>)

Initializes a new instance of MappingCharFilter.

Properties

Mappings

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

Name

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.

(Inherited from CharFilter)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CharFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from CharFilter)
IJsonModel<CharFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from CharFilter)
IJsonModel<MappingCharFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MappingCharFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CharFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from CharFilter)
IPersistableModel<CharFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from CharFilter)
IPersistableModel<CharFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from CharFilter)
IPersistableModel<MappingCharFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MappingCharFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MappingCharFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to