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

SimilarityDelegator is missing a delegating scorePayload() method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: core/search
    • Labels:
      None

      Description

      The handy SimilarityDelegator method is missing a scoreDelegator() delegating method.
      The fix is trivial, add the code below at the end of the class:

      public float scorePayload(String fieldName, byte [] payload, int offset, int length)

      { return delegee.scorePayload(fieldName, payload, offset, length); }

        Activity

        Hide
        gsingers Grant Ingersoll added a comment -

        Committed.

        Show
        gsingers Grant Ingersoll added a comment - Committed.
        Hide
        vajda Andi Vajda added a comment -

        Err, I meant to say "the handy SimilarityDelegator class"

        Show
        vajda Andi Vajda added a comment - Err, I meant to say "the handy SimilarityDelegator class"

          People

          • Assignee:
            gsingers Grant Ingersoll
            Reporter:
            vajda Andi Vajda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development