lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <te...@net-frame.com>
Subject Re: Syntax Problem
Date Sun, 16 Feb 2003 01:56:44 GMT
Christoph,

Same basic result:

+(cloning clone) +animal yields 1072 hits
(cloning OR clone) AND animal yields 19 hits.
(cloning clone) AND animal yields 19 hits.

Regards,

Terry

----- Original Message -----
From: "Christoph Kiehl" <ck@sulu3000.de>
To: <lucene-user@jakarta.apache.org>
Sent: Saturday, February 15, 2003 7:41 PM
Subject: Re: Syntax Problem


> Terry Steichen wrote:
> > I have an index which, when searched with this query ("cloning clone
> > animal") produces 1103 hits.  A different, more narrow query
> > ("(cloning clone) AND animal") produces only 19 hits.
>
> AFAIK the terms in your queries are by default concatenated by OR. This
> means "cloning clone animal" == "cloning OR clone OR animal".
>
> > What's puzzling to me is that if I try a different (but supposedly
> > identical) form of the more narrow query ("+(cloning clone)
> > +animal"), it produces 1103 hits rather than the 19 that I expect.
> >
> > In other words, "+(cloning clone) +animal" appears to be the
> > equivalent of "cloning OR clone OR animal" rather than "(cloning OR
> > clone) AND animal".
>
> Hm, strange. I would expect "+(cloning clone) +animal" being translated to
> "(cloning OR clone) AND animal". I just tried it here. The translation is
> done as I expected. Perhaps you could try the last query ("(cloning OR
> clone) AND animal") and compare the resultsize with the one from
"+(cloning
> clone) +animal" (even if both seem to be the same as "(cloning clone) AND
> animal" ;)?
>
> Christoph
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message