Search code examples
solrtypo3facet

What has changed that broke this Solr Query?


We used this solr query as a general filter

-(eventStart_tDateS:* OR -eventStart_tDateS:[NOW/DAY TO *]) OR -(eventEnd_tDateS:* OR -eventEnd_tDateS:[NOW/DAY TO *])

to achieve the following:

  1. get only events that take place in the future

and

  1. get also all facets without that field

so we filtered our events for only future events and filtered all other types other than events but without any effect.

It worked until we updated to solr 7.6, can anybody figure out what has changed that could break this query?

_tDateS is deprecated but is still in solr 7.6 for backwards compatibility.


Solution

  • this is how the query looks like after the rework, still not sure why the old version broke after the update

    -(eventStart_tDateS:[* TO *] OR -eventStart_tDateS:[NOW/DAY TO *]) OR -(eventEnd_tDateS:[* TO *] OR -eventEnd_tDateS:[NOW/DAY TO *])