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

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

    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

        1. SOLR-11775.patch
          53 kB
          Munendra S N
        2. SOLR-11775.patch
          67 kB
          Munendra S N

        Issue Links

          Activity

            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: