
SynonymGraphFilter
- Namespace
- Rowles.LeanLucene.Analysis.Filters
- Assembly
- Rowles.LeanLucene.dll
Token filter that supports multi-token synonym expansion using a trie-based SynonymMap. Uses longest-match lookahead for multi-word synonyms and inserts replacement tokens at the same position offsets.
public sealed class SynonymGraphFilter : ITokenFilter
SynonymGraphFilter
- Implements
Remarks
Replaces the simpler single-token synonym approach with trie-based longest-match.
Constructors
SynonymGraphFilter(SynonymMap)
Initialises a new SynonymGraphFilter with the specified synonym map.
Methods
Apply(List<Token>)
Applies the filter to the token list, modifying it in place.