Gossamer Forum
Home : Products : Gossamer Links : Discussions :

AND function with search.cgi?keywords=a&b

Quote Reply
AND function with search.cgi?keywords=a&b
hi,

I am trying to perform a AND function with search.cgi, as in:

search.cgi?keywords=a&b


At the moment, search.cgi performs an OR function, listing all LINKS with EITHER keywords 'a' or 'b', or both.


How do I change that behaviour so that only LINKS having BOTH keywords get displayed?


Thanks.
Quote Reply
Re: [server0000] AND function with search.cgi?keywords=a&b In reply to
I think this form can work search.cgi?keywords=a b&bool=and

Cheers

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] AND function with search.cgi?keywords=a&b In reply to
Thanks for the feedback, but it didn't work for me.

That statement matches only when keyword contains the substring "a b", whereas I would like it to match to all the following:

"b a"
"a, b"
"b, c, a"

etc...