[
https://issues.apache.org/jira/browse/SOLR-6037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13990913#comment-13990913
]
ASF subversion and git services commented on SOLR-6037:
-------------------------------------------------------
Commit 1592821 from [email protected] in branch 'dev/branches/lucene_solr_4_8'
[ https://svn.apache.org/r1592821 ]
Merge back several "low hanging" bug fixes into the 4.8 branch...
SOLR-6029: r1590867
SOLR-6030: r1591555
SOLR-6037: r1591800
SOLR-6023: r1592195
SOLR-5090: r1592591
SOLR-6039: r1592605
SOLR-5993: r1588415
SOLR-5904: r1587702
> 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
> Fix For: 4.9, 5.0
>
> 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: [email protected]
For additional commands, e-mail: [email protected]