Skip to content

Commit cb89b7e

Browse files
committed
Clarify that Test 5 finds "planet" from "lanet" not because both use bigrams, but because fuzzy matching works despite different n-grams (bigrams vs trigrams) due to small edit distance.
1 parent f6328d1 commit cb89b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/clt-tests/core/call-autocomplete-force-bigrams.rec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mysql -P9306 -h0 -e "call autocomplete('geroge', 't', 0 as force_bigrams)\G"
4242
––– output –––
4343
––– comment –––
4444
Test 5: 6-char word "planet" (boundary case), force_bigrams=0, expect: found
45-
Note: "lanet" (5 chars) uses bigrams automatically, so it can match "planet" (6 chars)
45+
Note: "lanet" uses bigrams, "planet" uses trigrams, but fuzzy matching still works (edit distance=1)
4646
––– input –––
4747
mysql -P9306 -h0 -e "call autocomplete('lanet', 't', 0 as force_bigrams)\G"
4848
––– output –––

0 commit comments

Comments
 (0)