Sdílet prostřednictvím


PatternAnalyzer Class

Definition

Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache Lucene. http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html

[Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.PatternAnalyzer")]
public class PatternAnalyzer : Microsoft.Azure.Search.Models.Analyzer
[<Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.PatternAnalyzer")>]
type PatternAnalyzer = class
    inherit Analyzer
Public Class PatternAnalyzer
Inherits Analyzer
Inheritance
PatternAnalyzer
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

PatternAnalyzer()

Initializes a new instance of the PatternAnalyzer class.

PatternAnalyzer(String, Nullable<Boolean>, String, Nullable<RegexFlags>, IList<String>)

Initializes a new instance of the PatternAnalyzer class.

Properties

Flags

Gets or sets regular expression flags. Possible values include: 'CANON_EQ', 'CASE_INSENSITIVE', 'COMMENTS', 'DOTALL', 'LITERAL', 'MULTILINE', 'UNICODE_CASE', 'UNIX_LINES'

LowerCaseTerms

Gets or sets a value indicating whether terms should be lower-cased. Default is true.

Name

Gets or sets 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 Analyzer)
Pattern

Gets or sets a regular expression pattern to match token separators. Default is an expression that matches one or more whitespace characters.

Stopwords

Gets or sets a list of stopwords.

Methods

Validate()

Validate the object.

Applies to