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
The default already is or, and you can use and, or, and not in your search.
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.
Can you post a link and some terms to search for ?
You can try changing incldue/search.inc.php lines 100 and 173
$current_match_type = 'and';
to
$current_match_type = 'or';
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.
This now works fine, thanks!