Search code examples
mongodbmongodb-.net-driversoundex

Does MongoDB support soundex or fuzzy matching?


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


Solution

  • 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