
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
MappingCharFilter(IReadOnlyDictionary<string, string>)
Initialises a new MappingCharFilter with the specified character mappings.
Methods
Filter(ReadOnlySpan<char>)
Transforms the input text, returning filtered text ready for tokenisation.