Perlfect Solutions
 

[Perlfect-search] "AND" by default?

Daniel Naber dnaber@mini.gt.owl.de
Thu, 17 Aug 2000 12:06:06 +0200
On Don, 17 Aug 2000, you wrote:

> I would like multiple terms entered by the
> user to be AND-ed together, instead of OR-ed,
> by default.

You could try this (didn't test it):

In search.pl, line 164, replace:
push @other, $terms_db{$sterm} if $terms_db{$sterm};
by
push @force, $terms_db{$sterm} if $terms_db{$sterm};

> Otherwise, it causes some confusion for
> the user.

Well, I think using OR makes sense as those dcuments which contain both 
words are still ranked to the top (mostly, see 
http://mini.gt.owl.de/~dnaber/perlfect/ for a patch to tune that 
behaviour).

Regards
 Daniel