Default boolean search behaviour Default boolean search behaviour
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Default boolean search behaviour

Started by CountB, June 24, 2005, 04:13:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CountB

Hi, hope this is the correct place to put this, I apologise if not.

I'm creating an image archive for my office marketing dept and I need a little help. The default search behaviour with boolean logic seems to be AND, so "woman ripe banana" is the same as "woman AND ripe AND banana". I would like it to default to OR as this generally returns more results. Is this possible?

Thanks!

James

Nibbler

The default already is or, and you can use and, or, and not in your search.

CountB

Quote from: Nibbler on June 24, 2005, 04:21:33 PM
The default already is or, and you can use and, or, and not in your search.

When I use no booleans I get the same results as and but or gives 'better' results, or seems to.

My users find this confusing so I'm trying to make things easier for them.

Nibbler

Can you post a link and some terms to search for ?

Nibbler

You can try changing incldue/search.inc.php lines 100 and 173

$current_match_type = 'and';

to

$current_match_type = 'or';

CountB

Quote from: Nibbler on June 24, 2005, 04:34:01 PM
Can you post a link and some terms to search for ?

Alas not as its intranet based.

I will try your mini-MOD, thanks.

CountB