How do I use a Levenshtein distance function in a sqlite where clause?

前端 未结 1 2028
一生所求
一生所求 2020-12-30 09:46

I\'m trying to implement a \"Did you mean?\" sort of function for a search.

I\'m trying to do a query that uses the levenshtein function, which was written in ruby.

相关标签:
1条回答
  • 2020-12-30 10:35

    Try the editdist3 function:

    The editdist3 algorithm is a function that computes the minimum edit distance (a.k.a. the Levenshtein distance) between two input strings.

    • http://www.sqlite.org/spellfix1.html
    0 讨论(0)
提交回复
热议问题