SearchModelFactory.PatternAnalyzer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache Lucene.
public static Azure.Search.Documents.Indexes.Models.PatternAnalyzer PatternAnalyzer(string name = default, bool? lowerCaseTerms = default, string pattern = default, string flagsInternal = default, System.Collections.Generic.IEnumerable<string> stopwords = default);
static member PatternAnalyzer : string * Nullable<bool> * string * string * seq<string> -> Azure.Search.Documents.Indexes.Models.PatternAnalyzer
Public Shared Function PatternAnalyzer (Optional name As String = Nothing, Optional lowerCaseTerms As Nullable(Of Boolean) = Nothing, Optional pattern As String = Nothing, Optional flagsInternal As String = Nothing, Optional stopwords As IEnumerable(Of String) = Nothing) As PatternAnalyzer
Parameters
- name
- String
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.
A value indicating whether terms should be lower-cased. Default is true.
- pattern
- String
A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters.
- flagsInternal
- String
Regular expression flags, specified as a '|' separated string of RegexFlags values.
- stopwords
- IEnumerable<String>
A list of stopwords.
Returns
A new PatternAnalyzer instance for mocking.