Class PatternCaptureTokenFilter
Uses Java regexes to emit multiple tokens - one for each capture group in one or more patterns. This token filter is implemented using Apache Lucene.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class PatternCaptureTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter
Constructors
PatternCaptureTokenFilter(String, IEnumerable<String>)
Initializes a new instance of PatternCaptureTokenFilter.
Declaration
public PatternCaptureTokenFilter (string name, System.Collections.Generic.IEnumerable<string> patterns);
Parameters
System.String
name
The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters. |
System.Collections.Generic.IEnumerable<System.String>
patterns
A list of patterns to match against each token. |
Exceptions
System.ArgumentNullException
|
Properties
Patterns
A list of patterns to match against each token.
Declaration
public System.Collections.Generic.IList<string> Patterns { get; }
Property Value
System.Collections.Generic.IList<System.String>
|
PreserveOriginal
A value indicating whether to return the original token even if one of the patterns matches. Default is true.
Declaration
public Nullable<bool> PreserveOriginal { get; set; }
Property Value
System.Nullable<System.Boolean>
|