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

Facet pivots produces NPE when facet.missing is turned on

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 6.0
    • Labels:
      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

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              tanguy Tanguy Moal
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: