Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11164

OriginalScoreFeature causes NullPointerException during feature logging with SolrCloud mode.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.6
    • Fix Version/s: 7.1, master (8.0)
    • Component/s: contrib - LTR
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      In FeatureTransfer, OriginalScoreFeature uses original Query instance preserved in LTRScoringQuery for the evaluation.
      This query is set in RankQuery#wrap during QueryComponent#process.

      With SolrCloud mode, document searches take two steps: finding top-N document ids, and filling documents of found ids.
      In this case, FeatureTransformer works in the second step and tries to extract features with LTRScoringQuery built in QueryComponent#prepare.
      However, because the second step doesn't call QueryComponent#process, the original query of LTRScoringQuery remains null and this causes NullPointerException while evaluating OriginalScoreFeature.

      We can get the original query from ResultContext which is an argument of DocTransformer#setContext, thus this problem can solve by using it if LTRScoringQuery doesn't have correct original query.

        Attachments

        1. SOLR-11164.patch
          7 kB
          Christine Poerschke
        2. SOLR-11164_master_v2.patch
          7 kB
          Yuki Yano
        3. SOLR-11164_master.patch
          7 kB
          Yuki Yano
        4. SOLR-11164.patch
          10 kB
          Yuki Yano
        5. SOLR-11164.patch
          4 kB
          Yuki Yano

          Issue Links

            Activity

              People

              • Assignee:
                cpoerschke Christine Poerschke
                Reporter:
                yuyano Yuki Yano
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: