Does MongoDB support soundex or fuzzy matching?
Asked Answered
B

1

10

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

Brownson answered 13/4, 2011 at 14:47 Comment(1)
read this article How to perform fuzzy matching with mongo connectorEgoism
S
8

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

Sieracki answered 13/4, 2011 at 14:54 Comment(3)
MongoDB has no real fulltext search. Pattern matching is no fulltext search.Felice
You should have quoted the followup of your quote...sorry but using soundex for this purpose is just a bad idea.Felice
@AndreasJung: in the meantime MongoDB has implemented FTS. Let's delete our comments.Heida

© 2022 - 2024 — McMap. All rights reserved.