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

Facet pivots produces NPE when facet.missing is turned on

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment