Re:Show HN: We built a fast substring search engine in Go
by damian2000 on Thursday August 29, 2013 @10:01PM
(#6299813)
I'd say having spelling agnostic search would be crucial. I searched yesterday on google play music for an artist I'd heard of that sounded something like "n door" so I typed that and he came up as the top hit... "Youssou N'Dour". For this ferret search engine all I get is "Nas".
Re:Show HN: We built a fast substring search engine in Go
by argusdusty on Thursday August 29, 2013 @10:23PM
(#6299880)
This is a good idea :) I'll probably add in a module for phonetic matching when I get the time.
Re:Show HN: We built a fast substring search engine in Go
by DrJosiah on Thursday August 29, 2013 @11:40PM
(#6300142)
A good idea is using a paper towel to open the door on your way out of a public restroom.
This is practical advice based on experience over several months of research and development scattered over 9 years. ;)
The first and most common is stemming, it can be useful, but it requires a lot of hand tuning and doesn't get you all that much (at least in my experience).
The second is using phonetics of words themselves to try to figure out what someone meant to type in. The grand-daddy of these is Soundex, which works, but isn't as good as Metaphone. Metaphone and Double Metaphone are algorithms that translate most latin-alphabet languages into possible abbreviated phonemes.
Double Metaphone, in particular, has allowed me to build spelling-agnostic prefix matching as an effectively trivial service for two different companies (the details of which you can read about in the Redis mailing list, and/or section 6.1.2 in my book, Redis in Action). The long and short of it is that if you used double metaphone, for the cost of 2-3x index size, you could get all of the results you are looking for in 2-3 searches instead of length(word) searches.