Uploaded image for project: 'Hibernate Search'
  1. Hibernate Search
  2. HSEARCH-2286

DistanceSortField should support reverse sorting

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.2.Final
    • Fix Version/s: 5.5.4.Final, 5.6.0.Beta2
    • Component/s: spatial
    • Labels:
      None
    • Environment:
      We use Hibernate search 5.5.2 with oracle XE.

      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 ?

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: