A parenthesized pure negative query needs a "*:*" to apply the negative
query against:
(*:* -Industry:"Agriculture") OR (*:* -Industry:[* TO *])
or,
(some terms -Industry:"Agriculture") OR (*:* -Industry:[* TO *]))
-- Jack Krupansky
-----Original Message-----
From: marotosg
Sent: Thursday, October 18, 2012 9:57 AM
To: [email protected]
Subject: Query excluding empty values and some criteria
Hi.
I am trying to do query where I need to include empty values and exclude
some specific data.
For instance my field name is "Industry" and my query looks like
(-Industry:"Agriculture") OR (-Industry:[* TO *])
I want to get all empty values OR industries which are not Agriculture. This
query does not work for me.
I tried it to split in two and it works.
First query --> (-Industry:"Agriculture")
Second Query --> (-Industry:[* TO *])
Any idea?
Thanks
Sergio
--
View this message in context:
http://lucene.472066.n3.nabble.com/Query-excluding-empty-values-and-some-criteria-tp4014498.html
Sent from the Solr - User mailing list archive at Nabble.com.