I'm wanting to assign some synonyms for certain search terms and this is what I've started to do:
# assign term synonyms
@synonyms = (employment , jobs);
if ($in{'query'} eq @synonyms[1]) {
($in{'query'} = @synonyms[0])
};
I placed this in sub main of the search.cgi script.
It works great if someone just searches for jobs. But how can I get it to work if someone searches for "technical jobs"?
# assign term synonyms
@synonyms = (employment , jobs);
if ($in{'query'} eq @synonyms[1]) {
($in{'query'} = @synonyms[0])
};
I placed this in sub main of the search.cgi script.
It works great if someone just searches for jobs. But how can I get it to work if someone searches for "technical jobs"?