PatternAnalyzer Class

Flexibly separates text into terms via a regular expression. This analyzer 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.LexicalAnalyzer
PatternAnalyzer

Constructor

PatternAnalyzer(**kwargs)

Parameters

name
str
Required

Required. 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.

lower_case_terms
bool
Required

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

pattern
str
Required

A regular expression to match token separators. Default is an expression that matches one or more white space characters.

flags
list[str] or list[<xref:search_service_client.models.RegexFlags>]
Required

List of regular expression flags. Possible values of each flag include: 'CANON_EQ', 'CASE_INSENSITIVE', 'COMMENTS', 'DOTALL', 'LITERAL', 'MULTILINE', 'UNICODE_CASE', 'UNIX_LINES'.

stopwords
list[str]
Required

A list of stopwords.