Does the '... AND -.....' part even make sense?
Why not just .... -.... ?
Also, .... AND +.... doesn't make sense, does it?
+<field>:<term> means the term has to be in the result, so AND is not
really needed, is it?
I am not sure if spaces after 'SEARCH_NAME:' make a difference or not

Also, field:term1 field:term2 implies term1 OR term2, so no need for OR
there, especially with +, I think.

Otis


--- Abhay Saswade <[EMAIL PROTECTED]> wrote:
> I am using lucene release 1.2. I am using StandardAnalyzer. Have
> anybody 
> faced this problem?
> 
> I get same results when I run following queries
> 
> 1. (+SEARCH_NAME:jhon  +SEARCH_NAME:joy)  AND -SEARCH_NAME:chan
> 2. (+SEARCH_NAME:jhon  AND +SEARCH_NAME: joy)  AND -SEARCH_NAME:chan
> 3. (+SEARCH_NAME:jhon  OR +SEARCH_NAME: joy)  AND -SEARCH_NAME:chan
> 
> But when I regroup the query by putting brackets around the last term
> like 
> mentioned below I don�t get any results
> 
> 1. (+SEARCH_NAME:jhon +SEARCH_NAME: joy)  AND (-SEARCH_NAME:chan)
> 2. (+SEARCH_NAME:jhon AND +SEARCH_NAME: joy)  AND (-SEARCH_NAME:chan)
> 3. (+SEARCH_NAME:jhon OR +SEARCH_NAME: joy)  AND (-SEARCH_NAME:chan)
> 
> This is just an example. I need to do grouping on various fields. Am
> I 
> missing something?  Is there any document other than 
> http://jakarta.apache.org/lucene/docs/queryparsersyntax.html? Can
> somebody 
> throw some light on this?
> 
> Thanks,
> Abhay
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to