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

Yonik Seeley commented on SOLR-1177:
------------------------------------

The facet component internally uses long to add up distributed facet counts, 
and then uses this code:

{code}
// use <int> tags for smaller facet counts (better back compatibility)
  private Number num(long val) {
   if (val < Integer.MAX_VALUE) return (int)val;
   else return val;
  }
{code}

Yes, it's not ideal to switch from <int> to <long> in a running application, 
but I think it's better than failing or overflowing the int.
Client code in SolrJ should be written to handle either via 
((Number)x).longValue()

> Distributed TermsComponent
> --------------------------
>
>                 Key: SOLR-1177
>                 URL: https://issues.apache.org/jira/browse/SOLR-1177
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.4
>            Reporter: Matt Weber
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: SOLR-1177.patch, SOLR-1177.patch, SOLR-1177.patch, 
> TermsComponent.java, TermsComponent.patch
>
>
> TermsComponent should be distributed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to