See the code in org.hibernate.search.elasticsearch.impl.ElasticsearchHSQueryImpl.IndexSearcher.getSort(SortField): we assume that "reverse" always means "DESC", but it's not true for score sorts. The bug was hidden because of
HSEARCH-2406 In Progress . Note: there are tests that should pass when this ticket is resolved, and that are currently disabled with a `@Category(ElasticsearchSupportInProgress.class)` annotation. Those tests will be (or have been) outlined as part of
HSEARCH-2406 In Progress . |