Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9451

Sort.rewrite doesn't always return this when unchanged

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.7
    • 9.0
    • core/search
    • None
    • New

    Description

      Sort.rewrite doesn't always return this as advertised in the Javadoc even if the underlying fields are unchanged. This is because the comparison uses reference equality.

      There are two solutions we can do here, 1) switch from reference equality to object equality, and 2) fix some of the underlying sort fields to not create unnecessary objects.

      cc: jpountz romseygeek

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m