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

PayloadNearQuery has hardwired explanation for 'AveragePayloadFunction'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The 'explain' method in PayloadNearSpanScorer assumes the AveragePayloadFunction was used. This patch adds the 'explain' method to the 'PayloadFunction' interface, where the Scorer can call it. Added unit tests for 'explain' and for

      {Min,Max}

      PayloadFunction.

        Attachments

        1. payloadfunctin-patch.txt
          17 kB
          Peter Keegan
        2. PNQ-patch.txt
          10 kB
          Peter Keegan
        3. PNQ-patch1.txt
          44 kB
          Peter Keegan
        4. PNQ-patch2.txt
          16 kB
          Peter Keegan

          Activity

            People

            • Assignee:
              gsingers Grant Ingersoll
              Reporter:
              pkeegan Peter Keegan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: