3.nabble.com/Unexpected-query-result-tp416p4100015.html
Sent from the Solr - User mailing list archive at Nabble.com.
Good blog on the fact that Solr/Lucene query language is
not strict boolean logic, and why:
http://searchhub.org/dev/2011/12/28/why-not-and-or-and-not/
Best,
Erick
On Fri, Nov 8, 2013 at 10:45 AM, Yonik Seeley wrote:
> On Fri, Nov 8, 2013 at 10:33 AM, Patrick Duc wrote:
> > "russia" ("web OR
On Fri, Nov 8, 2013 at 10:33 AM, Patrick Duc wrote:
> "russia" ("web OR NOT(russia)"
russia (web (*:* -russia))
Negative clauses often need something positive to subtract from... so
replace "NOT russia" with "(*:* -russia)"
-Yonik
http://heliosearch.com -- making solr shine
the AND and OR work correctly if I don't use a NOT
somewhere in the query, i.e. : "web AND russia" --> OK "web OR russia" -->
OK
--
View this message in context:
http://lucene.472066.n3.nabble.com/Unexpected-query-result-tp416.html
Sent from the Solr - User mailing list archive at Nabble.com.