lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6037) Stats Component Reports Incorrect max/sum/stddev for date fields in Distributed Data
Date Fri, 02 May 2014 00:34:14 GMT

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

ASF subversion and git services commented on SOLR-6037:
-------------------------------------------------------

Commit 1591800 from hossman@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1591800 ]

SOLR-6037: Fixed incorrect max/sum/stddev for Date fields in StatsComponent

> Stats Component Reports Incorrect max/sum/stddev for date fields in Distributed Data
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-6037
>                 URL: https://issues.apache.org/jira/browse/SOLR-6037
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>            Reporter: Brett Lucey
>            Assignee: Hoss Man
>            Priority: Minor
>         Attachments: SOLR-6037.patch, SOLR-6037.patch, SOLR-6037.patch
>
>
> When computing statistics using the statistics component, the value for max may be reported
incorrectly if the maximum value does not lie in the first shard. 
> This is where the problem is:
> {code:title=StatsValuesFactory.java|borderStyle=solid}
>   @Override
>   protected void updateMinMax(Date min, Date max) {
>     if(this.min==null || this.min.after(min)) {
>       this.min = min;
>     }
>     if(this.max==null || this.max.before(min)) {
>       this.max = max;
>     }
>   }
> {code}
> Attached is a one-line patch which fixes this issue.



--
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


Mime
View raw message