lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwk <>
Subject Re: Solr 1.4.1 and 3x: Grouping of query changes results
Date Mon, 09 Aug 2010 09:57:26 GMT
On 8/9/2010 12:01 AM, David Benson wrote:
> I'm seeing what I believe to be a logic error in the processing of a query.
> Returns document 1234 as expected:
> id:1234 AND -indexid:1 AND -indexid:2 AND -indexid:3
> Does not return document as expected:
> id:1234 AND (-indexid:1 AND -indexid:2) AND -indexid:3
> Has anyone else experienced this? The exact placement of the parens isn't key, just adding
a level of nesting changes the query results.
> Thanks,
> David


I could be wrong but I think this has to do with Solr's lack of support 
for purely negative queries, try the following and see if it behaves 

id:1234 AND (*:* AND -indexid:1 AND -indexid:2) AND -indexid:3



View raw message