You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2009/06/25 11:53:07 UTC
[jira] Commented: (SOLR-1246) StatsComponent returing
Double.MIN_VALUE when determining maximum value for negativ numbers
[ https://issues.apache.org/jira/browse/SOLR-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723984#action_12723984 ]
Noble Paul commented on SOLR-1246:
----------------------------------
hi Rafal, go ahead and submit a patch
> StatsComponent returing Double.MIN_VALUE when determining maximum value for negativ numbers
> -------------------------------------------------------------------------------------------
>
> Key: SOLR-1246
> URL: https://issues.apache.org/jira/browse/SOLR-1246
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Rafał Kuć
> Assignee: Noble Paul
> Priority: Minor
>
> StatsComponent use Double.MIN_VALUE when reseting its variables. Because of that, when calculating maximum value for negativ numbers max value will always return Double.MIN_VALUE because it is minimal positive value. Setting max value to Double.NEGATIV_INFINITY in reset method will resolve the problem. I can provide simple patch for this if needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.