Rowles.LeanLucene.Search.Suggestions
Classes
DidYouMeanSuggester
"Did you mean?" spelling correction. Delegates to SpellIndex which uses a pre-built character-trigram inverted index for fast candidate filtering, then scores by docFreq / (1 + editDistance). The SpellIndex is cached per searcher/field pair and released when the IndexSearcher is collected.
SpellIndex
Pre-built character-trigram inverted index for fast spelling correction. Build once via Build(IndexSearcher, string), then call Suggest(string, int, int) per query. This mirrors Lucene.NET's SpellChecker pattern: amortise the dictionary scan at build time, achieve near-constant-time lookups at query time.
Structs
Suggestion
A spelling correction suggestion with its edit distance and document frequency score.