Table of Contents

Public classSealed PatternReplaceCharFilter

Namespace
Rowles.LeanLucene.Analysis.Filters
Assembly
Rowles.LeanLucene.dll

Replaces text matching a regex pattern with a replacement string.

public sealed class PatternReplaceCharFilter : ICharFilter
PatternReplaceCharFilter
Implements

Constructors

Public constructor PatternReplaceCharFilter(string, string)

Initialises a new PatternReplaceCharFilter with the specified regex pattern and replacement.

Methods

Public method Filter(ReadOnlySpan<char>)

Transforms the input text, returning filtered text ready for tokenisation.