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

SearchWithSortTask ignores sorting by Doc

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.3, 4.0-ALPHA
    • modules/benchmark
    • None
    • New

    Description

      During my work in LUCENE-3912, I found the following code:

      if (field.equals("doc")) {
          sortField0 = SortField.FIELD_DOC;
      } if (field.equals("score")) {
          sortField0 = SortField.FIELD_SCORE;
      } ...
      

      This means the setting of SortField.FIELD_DOC is ignored. While I don't know much about this code, this seems like a valid setting and obviously just a bug.

      Attachments

        1. LUCENE-3223.patch
          3 kB
          Chris Male
        2. LUCENE-3223-test.patch
          2 kB
          Chris Male

        Activity

          People

            cmale Chris Male
            cmale Chris Male
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: