You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/03/17 12:08:43 UTC
[jira] [Commented] (LUCENE-5533) TaxonomyFacetSumIntAssociations
overflows, unpredicted results
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org