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

FastVectorHighlighter copies segments scores when splitting segments across multi-valued fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FastVectorHighlighter copies segments scores when splitting segments across multi-valued fields. This is only a problem when you want to sort the fragments by score. Technically BaseFragmentsBuilder (line 261 in my copy of the source) does the copying.

      Rather than copying the score I think it'd be more right to pull that copying logic into a protected method that child classes (such as ScoreOrderFragmentsBuilder) can override to do more intelligent things. Exactly what that means isn't clear to me at the moment.

        Attachments

        1. LUCENE-5285.patch
          13 kB
          Nik Everett
        2. LUCENE-5285.patch
          11 kB
          Nik Everett

          Activity

            People

            • Assignee:
              jpountz Adrien Grand
              Reporter:
              nik9000@gmail.com Nik Everett
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: