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

PayloadNearQuery has hardwired explanation for 'AveragePayloadFunction'

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1, 4.0-ALPHA
    • core/search
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment