How to find best fuzzy match for a string in a large string database

前端 未结 7 1814

I have a database of strings (arbitrary length) which holds more than one million items (potentially more).

I need to compare a user-provided string against the whol

7条回答
  •  Happy的楠姐
    2020-12-08 11:48

    https://en.wikipedia.org/wiki/Levenshtein_distance

    Levenshtein algorithm has been implemented in some DBMS

    (E.g. PostgreSql: http://www.postgresql.org/docs/9.1/static/fuzzystrmatch.html)

提交回复
热议问题