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

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

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.3, 6.0
    • modules/other
    • None
    • 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
          0.5 kB
          TomShally
        2. Lucene4504Test.java
          3 kB
          TomShally
        3. LUCENE-4504.patch
          5 kB
          Robert Muir

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tomsh TomShally
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: