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

single node RTG: NPE if score is requested

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2, 7.0
    • Component/s: None
    • Labels:
      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
          0.7 kB
          Ishan Chattopadhyaya
        2. SOLR-9287.patch
          7 kB
          Chris M. Hostetter

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: