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

Empty results from IndexSearcher.searchAfter() when sorting by FunctionValues

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      IS.searchAfter() always returns an empty result when using FunctionValues for sorting.

      The culprit is ValueSourceComparator.compareDocToValue() returning -1 when it should return +1.

        Attachments

        1. LUCENE-4504.patch
          5 kB
          Robert Muir
        2. Lucene4504Test.java
          3 kB
          TomShally
        3. LUCENE-4504.patch
          0.5 kB
          TomShally

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tomsh TomShally
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: