Share via


PatternAnalyzer Class

Definition

Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache Lucene.

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

Constructors

PatternAnalyzer(String)

Initializes a new instance of PatternAnalyzer.

Properties

Flags

Gets regular expression flags for Pattern.

LowerCaseTerms

A value indicating whether terms should be lower-cased. Default is true.

Name

The name of the analyzer. 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 LexicalAnalyzer)
Pattern

A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters.

Stopwords

Gets a list of stopwords.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LexicalAnalyzer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from LexicalAnalyzer)
IJsonModel<PatternAnalyzer>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PatternAnalyzer>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LexicalAnalyzer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from LexicalAnalyzer)
IPersistableModel<PatternAnalyzer>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PatternAnalyzer>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PatternAnalyzer>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to