Section navigation

Public method Suggest

Namespace
Rowles.LeanCorpus.Search.Suggestions
Assembly
Rowles.LeanCorpus.dll

Methods

Public methodStatic Suggest(IndexSearcher, string, string, int, int)

Suggests corrections for queryTerm in the given field. The underlying SpellIndex is built once per searcher/field pair and cached for subsequent calls. For explicit control over the index lifecycle, use Suggest(SpellIndex, string, int, int) with a manually built index.

Public methodStatic Suggest(SpellIndex, string, int, int)

Suggests corrections using a pre-built SpellIndex. Use this overload when issuing multiple suggestions against the same index to avoid rebuilding the trigram index on every call.