lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Carlson <carl...@bookandhammer.com>
Subject Re: Multiple field searching
Date Sun, 24 Mar 2002 20:57:01 GMT
HI,
The AND is not quite the same as +, the AND puts a + next to the previous
and next word.
That is foo AND bar is equivlent to +foo +bar
If you just said foo +bar then you have foo optional and bar required.

Slight difference.

>From looking at the queryParser a while ago the {} characters are exclusive
(or maybe it's inclusive) range query operators, similar to [].  I don't
think they make sense here.

--Peter

On 3/21/02 4:30 AM, "Kelvin Tan" <kelvin@relevanz.com> wrote:

> hmmm...really?
> 
> My impression was that the "AND"s are treated equivalently with "+"s by the
> parser, so they're redundant. The "{" and "}"s aren't part of the syntax,
> are they?
> 
> Kelvin
> ----- Original Message -----
> From: "Mehran Mehr" <mehran_at_mehr@yahoo.com>
> To: "Lucene Users List" <lucene-user@jakarta.apache.org>; "Kelvin Tan"
> <kelvin@relevanz.com>
> Sent: Thursday, March 21, 2002 8:11 PM
> Subject: Re: Multiple field searching
> 
> 
>> this is the right syntax:
>> 
>> +(keyword:{computers}) AND +(subject:{News}) AND
>> content:xml
>> 
>> 
>> __________________________________________________
>> Do You Yahoo!?
>> Yahoo! Movies - coverage of the 74th Academy Awards®
>> http://movies.yahoo.com/
>> 
>> --
>> To unsubscribe, e-mail:
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail:
> <mailto:lucene-user-help@jakarta.apache.org>
>> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
> 
> 


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


Mime
View raw message