You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2020/03/25 16:18:01 UTC

[jira] [Comment Edited] (SOLR-11775) json.facet can use inconsistent Long/Integer for "count" depending on shard count

    [ https://issues.apache.org/jira/browse/SOLR-11775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066797#comment-17066797 ] 

Munendra S N edited comment on SOLR-11775 at 3/25/20, 4:17 PM:
---------------------------------------------------------------

 [^SOLR-11775.patch] 
Irrespective of shard count, the value returned type would be long for facet counts
[~hossman] [~yseeley@gmail.com] [~gerlowskija] please review


was (Author: munendrasn):
 [^SOLR-11775.patch] 
Irrespective of shard count, the value returned type would be long for facet counts

> json.facet can use inconsistent Long/Integer for "count" depending on shard count
> ---------------------------------------------------------------------------------
>
>                 Key: SOLR-11775
>                 URL: https://issues.apache.org/jira/browse/SOLR-11775
>             Project: Solr
>          Issue Type: Bug
>          Components: Facet Module
>            Reporter: Chris M. Hostetter
>            Assignee: Munendra S N
>            Priority: Major
>         Attachments: SOLR-11775.patch
>
>
> (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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org