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 - Maybe solved
Date Sun, 16 Feb 2003 14:59:10 GMT
Responding to my own problem - I think it may not be a Lucene issue, but a
web one.  I'm passing the query to Lucene via a web browser, and I now
believe that what's happening is that the automatic url encoding/decoding is
stripping off the leading (at least) "+" sign (treating it as an encoded
space).  That would explain the behavior.  I will confirm this later on
today.

Regards,

Terry

----- Original Message -----
From: "Terry Steichen" <terry@net-frame.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Saturday, February 15, 2003 8:56 PM
Subject: Re: Syntax Problem


> 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
>
>


---------------------------------------------------------------------
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