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

Michael McCandless commented on LUCENE-5533:
--------------------------------------------

+1

But maybe we should break out a LongTaxonomyFacets instead?  Ie, the more 
common-case of simple facet counting would never overlow an int since a Lucene 
shard can have at most 2.1B docs.

> TaxonomyFacetSumIntAssociations overflows, unpredicted results
> --------------------------------------------------------------
>
>                 Key: LUCENE-5533
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5533
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>    Affects Versions: 4.7
>            Reporter: Rob Audenaerde
>
> {{TaxonomyFacetSumIntAssociations}} extends {{IntTaxonomyFacets}} which uses 
> a {{int[]}} to store values. If you sum a lot of integers in the 
> IntAssociatoins, the {{int}} will overflow.
> The easiest fix seems to change the {{value[]}} to {{long}}?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to