Actually, that’s wrong:
- The change of encoding I mentioned is wrong: dates are indexed as numbers in the Lucene backend, and already were in Hibernate Search 5. But you’re using the Elasticsearch backend, so this change of format is not relevant to you anyway; dates are indexed as
date
in the Elasticsearch backend, in Hibernate Search 5 and 6 both. - Taking into account the encoding used for dates in Hibernate Search 5, I don’t think
simpleQueryString
worked on date fields in Hibernate Search 5. Most likely, Hibernate Search 5 simply ignored these fields, and consequentlysimpleQueryString
didn’t work for these fields.
Anyway, my advice still holds:
But alternatively, you can just remove this field from this predicate, since it was most likely ignored in Hibernate Search 5 anyway.