function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
amarnijeramarnijer 

MetaPhone algorithm for apex

I am trying to search duplicate records for a custom Object. I used "Soundex algorithm" for that, but it is not that much effective. So I want to do a search based on "Metaphone" algorithm. Can anyone help me to write a code for this algorithm in apex. I got a link http://arungaikwad.wordpress.com/2013/02/13/phonetic-search-in-salesforce-com/ but it does not help me.

 

Thanks in advance.

sfdcfoxsfdcfox
There's an implementation by Apache in Java. Should be fairly easy to port to Apex Code, but I probably won't be able to assist you with this; it'd take quite a bit of time.
amarnijeramarnijer

Thank you for your reply. I got a code in java, I ll try to make it in apex. Thank you again

Munaga 1Munaga 1
Hi, i am also looking for this. if you have java code for this, could you please share?