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
Hi,
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
correctly:
id:1234 AND (*:* AND -indexid:1 AND -indexid:2) AND -indexid:3
Regards,
gwk