Perlfect Solutions

[Perlfect-search] "AND" by default?

Daniel Naber
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, line 164, replace:
push @other, $terms_db{$sterm} if $terms_db{$sterm};
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 for a patch to tune that