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

BoostingTermQuery's explanation should be marked as Match even if the payload part negated or zero'ed it

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/query/scoring
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Since BTQ multiplies the payload on the score it might return a negative score.
      The explanation should be marked as "Match" otherwise it is not added to container explanations,
      See also in LUCENE-1302.

        Activity

        Hide
        doronc Doron Cohen added a comment -

        Patch sets BTQ explanation as match according to score of non-payload part.

        Also in this patch: while at it I noticed that TestBTQ sets indexing time boost to 0 and hence one assertion on search results was commented out.
        I canceled that and re-enabled the assertion which now passes.

        All core tests pass.

        Show
        doronc Doron Cohen added a comment - Patch sets BTQ explanation as match according to score of non-payload part. Also in this patch: while at it I noticed that TestBTQ sets indexing time boost to 0 and hence one assertion on search results was commented out. I canceled that and re-enabled the assertion which now passes. All core tests pass.

          People

          • Assignee:
            doronc Doron Cohen
            Reporter:
            doronc Doron Cohen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development