How to do a fuzzy search?
Hi, I notice I don't get any results at all for misspelled words. I googled the issue and found that I need to set a language, so I set the language to norwegian in the control panel (at Google Custom Search) and not when I do a search with a misspelled word from the control panel, I get results back. However I don't get any results when using Low GoogleSearch. How can I get this to work?
Replies
Low 6 Jan 2012 11:17
You probably need to set a certain parameter. What does the query string look like when you're searching from the control panel?
owe 6 Jan 2012 11:58
It looks like this. I searched for "mettsider" which is misspelled "nettsider".
http://www.google.com/cse?cx=00846680...
Low 6 Jan 2012 12:11
For the misspelled word, Google does not return alternative search results in the XML, by the looks of it. However, it does give back spelling suggestions, so you could use this code inside the low_googlesearch:results tag:
owe 6 Jan 2012 12:20
Weird. I thought I had tried that already with no luck, but now it works. Thank you. Is there a way to do a second search then, for the suggestions? I figure that must be what Google does?
Low 6 Jan 2012 12:24
Well, you could redirect to the suggested keyword. Something like this, assuming the actual keywords are in segment_2 and the misspelled keywords can be passed on in segment_3:
owe 6 Jan 2012 12:26
OK, I'll try that. Thanks a lot!