Table of Contents

Public classSealed SynonymMap

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

Trie-based synonym map supporting multi-token source phrases. Used by SynonymGraphFilter for longest-match multi-token synonym expansion.

public sealed class SynonymMap
SynonymMap

Methods

Public method Add(string, string[])

Adds a synonym mapping. Source may be a multi-word phrase (space-separated). Replacements are the synonym tokens to inject.

Internal methodInternal TryMatch(List<Token>, int, out string[]?)

Attempts longest-match lookup starting at the given token position.