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

前端 未结 7 1842

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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 11:24

    You didn't mention your database system, but for PostrgreSQL you could use the following contrib module: trgm - Trigram matching for PostgreSQL

    The pg_trgm contrib module provides functions and index classes for determining the similarity of text based on trigram matching.

提交回复
热议问题