开发者

Does MongoDB support soundex or fuzzy matching?

开发者 https://www.devze.com 2023-02-25 02:51 出处:网络
D开发者_JAVA技巧oes MongoDB support soundex or fuzzy matching?I want to spot dupes of basic contact name and address fields.I\'m using the official C# driver.ThanksMongodb doesn\'t support soundex mat

D开发者_JAVA技巧oes MongoDB support soundex or fuzzy matching? I want to spot dupes of basic contact name and address fields. I'm using the official C# driver. Thanks


Mongodb doesn't support soundex matching, but it has Full Text Search.

Also,

You can always just store the soundex-encoded string in a separate field in mongo and search against that. Soundex is a really trivial algorithm and should only take a handful of lines.

-- from mongodb-user


MongoDB does not support real fulltext search and nothing like soundex (which is a very bad part for matching terms - something like Levensthein distance calculation is much better).

In addition look at my last comment here:

Full-text search in NoSQL databases

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号