Gossamer Forum
Home : Products : DBMan : Customization :

two word search

Quote Reply
two word search
I want to do a keyword search that does the following:

in search form, user can enter more than one word. in the search routine, i want to split the keywords into separate words and then search on the words individually -- if a record contains any of the search words in any field, it's a match.

how do i code this? i know just a little perl.
Quote Reply
Re: [delicia] two word search In reply to
I thought this thing works with the default keyword search that comes with dbman.cgi but apperantly it doesn't split the words as you need.

Anyhow - try using this mod for boolean searching written by leisurelee.
It works perfectly with the option you want - plus you get the "AND" search in the same price.. Wink

Alon Gal.
Quote Reply
Re: [alon_g] two word search In reply to
thanks -- i was able to split the keywords using that code and only had to change 3 lines of my code!