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

single node RTG: NPE if score is requested

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2, 7.0
    • None
    • None

    Description

      Found in SOLR-9180 testing.

      In single node solr setups, if an RTG request is made that includes "score" in the fl, then there is an NPE from ResultContext.wantsScores.

      This does not happen if the same request happens in a SolrCloud setup - in that case the request for "score" is silently ignored – this seems to me like the optimal behavior (similarly: using the [explain] transformer in the fl for an RTG is currently silently ignored for both single node and solr cloud envs)

      Attachments

        1. SOLR-9287.patch
          7 kB
          Chris M. Hostetter
        2. SOLR-9287.patch
          0.7 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: