Default boolean search behaviour Default boolean search behaviour
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Default boolean search behaviour

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

Previous topic - Next topic

0 Members and 2 Guests 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