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" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> To: "Lucene Users List" <[EMAIL PROTECTED]>; "Kelvin Tan"
> <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>