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

json.facet can use inconsistent Long/Integer for "count" depending on shard count

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • Facet Module
    • None

    Description

      (NOTE: I noticed this while working on a test for type: range but it's possible other facet types may be affected as well)

      When dealing with a single core request – either standalone or a collection with only one shard – json.facet seems to use "Integer" objects to return the "count" of facet buckets, however if the shard count is increased then the end client gets a "Long" object for the "count"

      (This isn't noticable when using wt=json but can be very problematic when trying to write client code using wt=xml or SolrJ

      Attachments

        Issue Links

        Activity

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

          People

            munendrasn Munendra S N
            hossman Chris M. Hostetter
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment