Distance projection may lead to missing hits in the Lucene and Elasticsearch backends

Description

See org.hibernate.search.documentation.searchdsl.projection.ProjectionDslIT#distance, added as part of HSEARCH-3597. The test passes with Elasticsearch, but there is absolutely no hit with Lucene, even though we're simply using the matchAll predicate.

EDIT: we appear to have a similar problem with the Elasticsearch backend for ES 5.6, though I don't think the root cause is the same. Later version may or may not work correctly: I didn't try. With Elasticsearch 5.6, I get this:

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Major
Configure