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

Facet pivots produces NPE when facet.missing is turned on

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0, 6.0
    • None

    Description

      We get an http 500 as follow :

      <lst name="error">
        <str name="trace">java.lang.NullPointerException</str>
        <int name="code">500</int>
      </lst>
      
      

      When facet.missing is turned on and combined with facet.pivot (if one of the pivot-faceted fields have missing counts -)

      Ideally, the decission tree could be computing for the missing "entries" using the

       -field:[* TO *] 

      query but it might be a performance issue on a large index (I guess)

      The fallback to this could be to raise a 400 error with a clean message telling that both parameters can't be combined and then the documentation should be modified accordingly.

      Attachments

        1. SOLR-3783.patch
          9 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            tanguy Tanguy Moal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: