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 "Rafał Kuć (JIRA)" <ji...@apache.org> on 2009/06/25 21:16:08 UTC
[jira] Updated: (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:all-tabpanel ]
Rafał Kuć updated SOLR-1246:
----------------------------
Attachment: StatsComponent.java.patch
I`ve added the patch for this.
> 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
> Attachments: StatsComponent.java.patch
>
>
> 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.