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

NullPointerException in JSON facet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.2
    • 7.3
    • Facet Module
    • None

    Description

      NullPointerException in JSON facet when using terms with limit -1 and more than one facet

      {f1:{terms:{field:'cat_ldS', limit:-1, sort:'n1 desc', facet:

      {n1:'avg(num_ldS)', n2:'sum(num_ldS)'}

      }}}}

      java.lang.NullPointerException
      at org.apache.solr.search.facet.AvgSlotAcc.collect(SlotAcc.java:390)
      at org.apache.solr.search.facet.FacetFieldProcessor$MultiAcc.collect(FacetFieldProcessor.java:510)
      at org.apache.solr.search.facet.SlotAcc.collect(SlotAcc.java:97)
      at org.apache.solr.search.facet.FacetFieldProcessor.collectFirstPhase(FacetFieldProcessor.java:220)
      at org.apache.solr.search.facet.UnInvertedField.collectDocsGeneric(UnInvertedField.java:431)
      at org.apache.solr.search.facet.UnInvertedField.collectDocs(UnInvertedField.java:410)
      at org.apache.solr.search.facet.FacetFieldProcessorByArrayUIF.collectDocs(FacetFieldProcessorByArrayUIF.java:64)
      at org.apache.solr.search.facet.FacetFieldProcessorByArray.calcFacets(FacetFieldProcessorByArray.java:108)
      at org.apache.solr.search.facet.FacetFieldProcessorByArray.process(FacetFieldProcessorByArray.java:58)
      at org.apache.solr.search.facet.FacetProcessor.processSubs(FacetProcessor.java:460)
      at org.apache.solr.search.facet.FacetProcessor.fillBucket(FacetProcessor.java:407)
      at org.apache.solr.search.facet.FacetQueryProcessor.process(FacetQuery.java:64)
      at org.apache.solr.search.facet.FacetModule.process(FacetModule.java:154)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:295)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:180)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:2503)
      at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:710)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:382)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:326)
      

      Attachments

        1. SOLR-12064.patch
          5 kB
          Karthik Ramachandran
        2. patch.diff
          2 kB
          Karthik Ramachandran
        3. patch.diff
          0.7 kB
          Karthik Ramachandran

        Issue Links

          Activity

            People

              yseeley@gmail.com Yonik Seeley
              mrkarthik Karthik Ramachandran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h