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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Facet Module
    • Labels:
      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

              People

              • Assignee:
                Unassigned
                Reporter:
                hossman Hoss Man
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: