Page 1 of 1

How to search other related keywords?

Posted: Tue Feb 06, 2007 9:47 am
by amir
Hello,

I am displaying different packages E.g. Romance, Break Fast, Parking etc. in my hotel site. I want to search these packages and display hotels in which these packages reside. Its working fine.

My Question is:-
we have a package Romance, other related keywords might be
Love, For Two, Excitement, Romanticism, Sexual Pleasure, Enjoy Two etc.

I want, if I make a search Romance but it does not exist then it should look for other related keywords and display the hotels according to them. How can I do this?

Please Advise.
TIA!

Posted: Tue Feb 06, 2007 11:28 am
by Ollie Saunders
Change line 84 in file query.php to use the third variable and then... :roll: </sarcasticGit>

How am I supposed to advise you on this? I don't know your code. Make an attempt and if it doesn't work post some code and we'll help you.

Posted: Wed Feb 07, 2007 4:29 am
by amir
Actually I just want to have some idea or a starter! Thanks;

Posted: Wed Feb 07, 2007 4:47 am
by louie35
you want to do something like Google suggest.

Create a table in your database and add similar words in it
eg:
Package: Romancesimilar words (not the same as the one that is in the search already) - Love, For Two, Excitement, Romanticism, Sexual Pleasure, Enjoy Two

so if I look for Love then show Related words Romance: For Two, Excitement, Romanticism, Sexual Pleasure, Enjoy Two

Posted: Wed Feb 07, 2007 5:39 am
by amir
You all are real gurus. Thanks!