Class PatternReplaceFilter
A TokenFilter which applies a
Note: Depending on the input and the pattern used and the input
Token
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 |
---|---|---|
Token |
in | the Token |
Regex | pattern | the pattern (a |
System. |
replacement | the "replacement string" to substitute, if |
System. |
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. |
Overrides
Implements
IDisposable