Udostępnij za pośrednictwem


PatternTokenizer Constructors

Definition

Overloads

PatternTokenizer()

Initializes a new instance of the PatternTokenizer class.

PatternTokenizer(String, String, Nullable<RegexFlags>, Nullable<Int32>)

Initializes a new instance of the PatternTokenizer class.

PatternTokenizer()

Source:
PatternTokenizer.cs

Initializes a new instance of the PatternTokenizer class.

public PatternTokenizer ();
Public Sub New ()

Applies to

PatternTokenizer(String, String, Nullable<RegexFlags>, Nullable<Int32>)

Source:
PatternTokenizer.cs

Initializes a new instance of the PatternTokenizer class.

public PatternTokenizer (string name, string pattern = default, Microsoft.Azure.Search.Models.RegexFlags? flags = default, int? group = default);
new Microsoft.Azure.Search.Models.PatternTokenizer : string * string * Nullable<Microsoft.Azure.Search.Models.RegexFlags> * Nullable<int> -> Microsoft.Azure.Search.Models.PatternTokenizer
Public Sub New (name As String, Optional pattern As String = Nothing, Optional flags As Nullable(Of RegexFlags) = Nothing, Optional group As Nullable(Of Integer) = Nothing)

Parameters

name
String

The name of the tokenizer. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

pattern
String

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

flags
Nullable<RegexFlags>

Regular expression flags. Possible values include: 'CANON_EQ', 'CASE_INSENSITIVE', 'COMMENTS', 'DOTALL', 'LITERAL', 'MULTILINE', 'UNICODE_CASE', 'UNIX_LINES'

group
Nullable<Int32>

The zero-based ordinal of the matching group in the regular expression pattern to extract into tokens. Use -1 if you want to use the entire pattern to split the input into tokens, irrespective of matching groups. Default is -1.

Applies to