lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhay Saswade" <abhay_sasw...@hotmail.com>
Subject Query grouping
Date Fri, 03 Jan 2003 18:03:40 GMT
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:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message