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

IndexSearcher.search is broken when IndexSearcher.executor != null and the sort contains SortField.FIELD_SCORE

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2.1
    • 4.3
    • None
    • None
    • New

    Description

      When executor != null, IndexSearcher performs two passes to compute the top docs. This doesn't work when the sort contains SortField.FIELD_SCORE because the second pass doesn't have access to scores computed in the first pass. Since search(...) doesn't compute scores when there is a sort, they are all Float.NaN.

      Attachments

        1. LUCENE-4925.patch
          3 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: