Class PatternReplaceFilter
A TokenFilter which applies a
Note: Depending on the input and the pattern used and the input TokenStream, this TokenFilter may produce Tokens whose text is the empty string.
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Analysis.Pattern
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class PatternReplaceFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourcePatternReplaceFilter(TokenStream, Regex, String, Boolean)
Constructs an instance to replace either the first, or all occurances
Declaration
public PatternReplaceFilter(TokenStream in, Regex pattern, string replacement, bool all)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | in | the TokenStream to process |
Regex | pattern | the pattern (a |
System.String | replacement | the "replacement string" to substitute, if |
System.Boolean | all | if true, all matches will be replaced otherwise just the first match. |
Methods
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
IDisposable