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!
How to search other related keywords?
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
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
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