3 ms·
I can confirm an approach like this works in practice. Although instead of levenshtein I use spellfix (maybe it uses that under the covers? not sure). If there
by jerrygenser 2y ago
I can confirm an approach like this works in practice.
Although instead of levenshtein I use spellfix (maybe it uses that under the covers? not sure). If there is no match from the first search, I use the sqlite spellfix extension [0] to find matches. Then feed those candidates into the terms.
https://www.sqlite.org/spellfix1.html https://www.sqlite.org/spellfix1.html
- jbaiter 2y agoAh, that's great, didn't know about that :-) It seems to use a similar edit-distance algorithm under the hood, and the docs explicitely mention integration with the FTS extension, so this is probably the way to go!