FacetParameterContext.includeZeroCounts(true) generates incorrect facets for numeric fields

Description

The implementation of org.hibernate.search.query.engine.impl.QueryHits.findAllTermsForField(String, IndexReader) seems to only work for text fields. Note this is true even the facet itself uses STRING encoding.

See I managed to reproduce the issues on one of my branches; see https://github.com/yrodiere/hibernate-search/tree/HSEARCH-2671

Environment

None

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure