Does MongoDB support soundex or fuzzy matching?

Journeyman picture Journeyman · Apr 13, 2011 · Viewed 10.9k times · Source

Does 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

Answer

Andrei Andrushkevich picture Andrei Andrushkevich · Apr 13, 2011

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