public marks

PUBLIC MARKS from parmentierf with tags mysql & c

21 December 2006 08:00

JoshDrew.com

Last month, I needed to use the metaphone and edit (Levenshtein) distance algorithms for a fuzzy search of a MySQL table. Of course, neither is available as a built-in MySQL function. So, I had to install them as UDFs. The MySQL source distribution includes a metaphone UDF function in udf_example.cc. However, I couldn't find a Levenshtein UDF anywhere, so I wrote one, by converting a C implementation by Lorenzo Seidenari. I suspect that other people could benefit from this code, and you can download it from joshdrew.com. I compared the function's output to that of the PHP levensthein() function for a couple million word pairs; the results agreed completely - that's good enough for me. (this code comes with no warranty whatsoever, but I really hope you find it useful)

parmentierf's TAGS related to tag mysql

apache +   bibliographie +   blog +   bot +   c +   cassandra +   chatterbot +   clé usb +   collaboratif +   couleur +   css +   cvs +   dev +   emacs +   encodage +   francophone +   français +   geek +   gnu/gpl +   gratuit +   guide +   html +   ia +   irc +   java +   javascript +   langage c +   levenshtein +   linux +   logiciel +   mac +   manuel +   me +   moteur de recherche +   NoSQL +   open source +   perl +   php +   python +   référence +   ror +   ruby +   search +   serveur +   serveur web +   sgbd +   shell +   sécurité +   sql +   sqlite +   string matching +   svn +   taln +   tutoriel +   ubuntu +   utf8 +   vb +   web +   webdev +   wiki +   windows +   xhtml +   xsl +