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
精彩评论