The following filter query returns zero results (using *:* as query):
-startDate:[* TO *] OR startDate:[* TO NOW/DAY+1DAY]
But if I filter
When you query with -startDate:[* TO *]
you get documents which do not have any data for the startDate
field.
When you query for startDate:[* TO NOW/DAY+1DAY]
you get documents which have a value less than or equal to NOW/DAY+1DAY
in the startDate
field.
You could try -startDate:* OR startDate:[* TO NOW/DAY+1DAY]
. The first part says documents that do not have a value and the second part says document having value less than or equal to NOW/DAY+1DAY
in the startDate
field.