Table of Contents

Public classSealed MappingCharFilter

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

Maps specific characters or strings to replacements using a lookup table. Useful for normalising special characters (e.g., smart quotes → straight quotes).

public sealed class MappingCharFilter : ICharFilter
MappingCharFilter
Implements

Constructors

Public constructor MappingCharFilter(IReadOnlyDictionary<string, string>)

Initialises a new MappingCharFilter with the specified character mappings.

Methods

Public method Filter(ReadOnlySpan<char>)

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