Long and Date range faceting doesn't honor hasZeroCountsIncluded

Description

While playing with ElasticSearch faceting (and having tests failing due to that), I noticed that for Longs and Dates, the preexisting range faceting doesn't take into account facetRequest.hasZeroCountsIncluded().

See
https://github.com/hibernate/hibernate-search/blob/master/engine/src/main/java/org/hibernate/search/query/engine/impl/QueryHits.java#L308
and a few lines below for floating point ranges which take into account this very parameter.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.5.2.Final

Priority

Minor
Configure