Class PatternReplaceFilter
A TokenFilter which applies a System.Text.RegularExpressions.Regex to each token in the stream, replacing match occurances with the specified replacement string.
Note: Depending on the input and the pattern used and the input TokenStream, this TokenFilter may produce Tokens whose text is the empty string.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public sealed class PatternReplaceFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
PatternReplaceFilter(TokenStream, Regex, String, Boolean) | Constructs an instance to replace either the first, or all occurances |
Methods
Name | Description |
---|---|
IncrementToken() |
Extension Methods
See Also
System.Text.RegularExpressions.Regex