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

SearchWithSortTask ignores sorting by Doc

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3, 4.0-ALPHA
    • Component/s: modules/benchmark
    • Labels:
      None
    • Lucene Fields:
      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-test.patch
          2 kB
          Chris Male
        2. LUCENE-3223.patch
          3 kB
          Chris Male

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: