The following filter query returns zero results (using *:* as query):
-startDate:[* TO *] OR startDate:[* TO NOW/DAY+1DAY]
But if I filter only by:
-startDate:[* TO *]
I get 3 results.
If I filter only by:
startDate:[* TO NOW/DAY+1DAY]
I get 161 reults.
Why is the combined FQ returning zero results? What I want is the filter to return any doc whose start date is null or start date is before today.
EDIT:
I'm using Solr 4.2.1.2013.03.26.08.26.55
EDIT:
Well, strange it may sound a colleague suggested putting parenthesis on the two parts like this:
(-startDate:[* TO *]) OR (startDate:[* TO NOW/DAY+1DAY])
And somehow it worked. I'm still curious why that made a difference. Hope someone can shed some light.
Thanks!