Share via


PatternCaptureTokenFilter Class

Definition

Uses Java regexes to emit multiple tokens - one for each capture group in one or more patterns. This token filter is implemented using Apache Lucene.

public class PatternCaptureTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
public class PatternCaptureTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter, System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.PatternCaptureTokenFilter>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.PatternCaptureTokenFilter>
type PatternCaptureTokenFilter = class
    inherit TokenFilter
type PatternCaptureTokenFilter = class
    inherit TokenFilter
    interface IJsonModel<PatternCaptureTokenFilter>
    interface IPersistableModel<PatternCaptureTokenFilter>
Public Class PatternCaptureTokenFilter
Inherits TokenFilter
Public Class PatternCaptureTokenFilter
Inherits TokenFilter
Implements IJsonModel(Of PatternCaptureTokenFilter), IPersistableModel(Of PatternCaptureTokenFilter)
Inheritance
PatternCaptureTokenFilter
Implements

Constructors

PatternCaptureTokenFilter(String, IEnumerable<String>)

Initializes a new instance of PatternCaptureTokenFilter.

Properties

Name

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.

(Inherited from TokenFilter)
Patterns

A list of patterns to match against each token.

PreserveOriginal

A value indicating whether to return the original token even if one of the patterns matches. Default is true.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<PatternCaptureTokenFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PatternCaptureTokenFilter>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<TokenFilter>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from TokenFilter)
IPersistableModel<PatternCaptureTokenFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PatternCaptureTokenFilter>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PatternCaptureTokenFilter>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<TokenFilter>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from TokenFilter)

Applies to