You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Prasanna S. Dhakephalkar" <pr...@merajob.in> on 2016/09/10 02:54:16 UTC
query formulation
Greetings Group,
I am attempting to formulate a query that gives me all the records such that
1. The record does not have field a_id
2. If a_id field exists then it should have a value 20
So, for 1. I used -a_id:* (got 25 results)
For 2. I used a_id:20 (got 3 results)
For combination I used
-a_id:* OR a_id:20 (was expecting 28 results)
Got nothing.
What Am I missing ?
Regards,
Prasanna.