lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <s...@elyograg.org>
Subject Re: Confusion about location of + and - ?
Date Thu, 03 Jul 2014 17:01:06 GMT
On 7/1/2014 2:06 PM, Brett Hoerner wrote:
> Also, does anyone have the Solr or Lucene bug # for this?

It's not actually a bug.  It's an inherent truth -- you can't subtract
from nothing.  You must tell Lucene what to start with before you can
subtract the 123456789 value.

The fact that a bare query of -field:value works with Solr is because
Solr contains code that recognizes the purely negative query and fills
in an implicit *:* value first.

In cases like this where a purely negative query is just one clause and
not the WHOLE query, Solr is not able to recognize the situation and fix
it.  An enhancement request would be appropriate here, not a bug report.
 I do not know if such an enhancement request is already in Jira.

Thanks,
Shawn


Mime
View raw message