search: did-you-mean spelling suggestion + 9 tests
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 30s

suggest/suggestN rank indexed terms by edit distance to a (misspelled) query
term, alphabetical tiebreak. 234/234.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 00:46:22 +00:00
parent db2a5dc6ab
commit 5d62d08e1c
7 changed files with 69 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
;; paginate, pageTfIdf, pageBm25, resultCount, editDist, fuzzyTerms, fuzzyDocs,
;; fuzzyRankTfIdf, highlight, snippet, stem, stemText, stemTokens, indexStemmed,
;; nearDocs, expandTerm, synDocs, synRankTfIdf, queryTerms, searchRankTfIdf,
;; searchRankBm25.
;; searchRankBm25, suggestN, suggest.
(define
search/src
@@ -39,4 +39,6 @@
"\n"
search/syn-src
"\n"
search/rankq-src))
search/rankq-src
"\n"
search/suggest-src))