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

ASF subversion and git services commented on SOLR-13780:
--------------------------------------------------------

Commit c22379253c2a035a47fac730ccb381efcba4183a in lucene-solr's branch 
refs/heads/master from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=c223792 ]

SOLR-13780: fix ClassCastException in NestableJsonFacet

* handle both int and long values for count. In case of single-shard or
  standalone, count is int whereas in multishard count would be long


> ClassCastException in NestableJsonFacet
> ---------------------------------------
>
>                 Key: SOLR-13780
>                 URL: https://issues.apache.org/jira/browse/SOLR-13780
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 7.7.1, 8.1, 8.2
>            Reporter: Munendra S N
>            Assignee: Munendra S N
>            Priority: Minor
>         Attachments: SOLR-13780.patch
>
>
> Stacktrace 
> {code:java}
> Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to 
> java.lang.Integer
>       at 
> org.apache.solr.client.solrj.response.json.NestableJsonFacet.<init>(NestableJsonFacet.java:52)
>       at 
> org.apache.solr.client.solrj.response.QueryResponse.extractJsonFacetingInfo(QueryResponse.java:200)
>       at 
> org.apache.solr.client.solrj.response.QueryResponse.getJsonFacetingResponse(QueryResponse.java:571)
> {code}
> This change was missed in SOLR-13318



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

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

Reply via email to