DistanceSortField should support reverse sorting

Description

May be I do not know how to use the DistanceSortField class,
But I want to do some column sorting on distance, and I am not able to do reverse sorting (in DESC direction).

The DistanceSortField constructor do not accept a parameter 'reverse boolean'.
I think the point is in the method
org.hibernate.search.spatial.impl.DistanceComparatorSource#newComparator that do not handle the given reverse parameter.

May be I miss something ?

Environment

We use Hibernate search 5.5.2 with oracle XE.

Status

Assignee

Guillaume Smet

Reporter

Adrien Est

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.5.2.Final

Priority

Major
Configure