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

OriginalScoreFeature causes NullPointerException during feature logging with SolrCloud mode.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.6
    • 7.1, 8.0
    • contrib - LTR
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: