SearchModelFactory.PatternCaptureTokenFilter 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.
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.
public static Azure.Search.Documents.Indexes.Models.PatternCaptureTokenFilter PatternCaptureTokenFilter(string name = default, System.Collections.Generic.IEnumerable<string> patterns = default, bool? preserveOriginal = default);
static member PatternCaptureTokenFilter : string * seq<string> * Nullable<bool> -> Azure.Search.Documents.Indexes.Models.PatternCaptureTokenFilter
Public Shared Function PatternCaptureTokenFilter (Optional name As String = Nothing, Optional patterns As IEnumerable(Of String) = Nothing, Optional preserveOriginal As Nullable(Of Boolean) = Nothing) As PatternCaptureTokenFilter
Parameters
- name
- String
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.
- patterns
- IEnumerable<String>
A list of patterns to match against each token.
A value indicating whether to return the original token even if one of the patterns matches. Default is true.
Returns
A new PatternCaptureTokenFilter instance for mocking.