[search] adding support for operators

navadasha

Joined: 2005-10-21
Posts: 6
Posted: Fri, 2005-10-28 17:00

Has anyone customized the search so it supports operators?

For example:

Right now, if I search for "London Paris", G2 will look for both the words in the summary, desc, title...

I would like to enter "London OR Paris", so G2 would search for either of the words, and not both. AFAIK, G2 does not support this.

Any help will be greatly appreciated.

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Fri, 2005-10-28 18:46

navadasha---- Here is the AND patch. Fancy working on it to make it OR?
----best wishes, Robert

 
navadasha

Joined: 2005-10-21
Posts: 6
Posted: Fri, 2005-10-28 19:13

That's perfect! Exactly what I needed.
I just replaced AND with OR, and it works fine.

It does not exactly do what I requested for, but it certainly is what I was looking for. ;)

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Fri, 2005-10-28 19:23

navadasha----
Good, glad to be of help to you.
----best wishes, Robert