Constructor PatternCaptureGroupTokenFilter
PatternCaptureGroupTokenFilter(TokenStream, Boolean, Regex[])
Creates a new PatternCaptureGroupTokenFilter
Declaration
public PatternCaptureGroupTokenFilter(TokenStream input, bool preserveOriginal, params Regex[] patterns)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input | the input TokenStream |
System.Boolean | preserveOriginal | set to true to return the original token even if one of the patterns matches |
System.Text.RegularExpressions.Regex[] | patterns | an array of Lucene.Net.Analysis.Pattern objects to match against each token |