lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ruchir choudhry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-13004) Integer overflow in total count in grouping results
Date Thu, 31 Jan 2019 20:21:00 GMT

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

ruchir choudhry commented on SOLR-13004:
----------------------------------------

Can you pls assign it to me, I can take this up. 

Thanks -Ruchir

> Integer overflow in total count in grouping results
> ---------------------------------------------------
>
>                 Key: SOLR-13004
>                 URL: https://issues.apache.org/jira/browse/SOLR-13004
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search, SolrCloud
>    Affects Versions: 5.5.3
>            Reporter: Ian
>            Priority: Minor
>
> When doing a Grouping search in solr cloud you can get a negative number for the total
found.
> This is caused by the accumulated total being held in an integer and not a long.
>  
> example result:
> {{{ "responseHeader": { "status": 0, "QTime": 9231, "params": { "q": "decade:200", "indent":
"true", "fl": "decade", "wt": "json", "group.field": "decade", "group": "true", "_": "1542773674247"
} }, "grouped": { "decade": { "matches": -629516788, "groups": [ { "groupValue": "200", "doclist":
{ "numFound": -629516788, "start": 0, "maxScore": 1.9315376, "docs": [ { "decade": "200" }
] } } ] } } }}}
>  
> {{result without grouping:}}
> {{{ "responseHeader": { "status": 0, "QTime": 1063, "params": { "q": "decade:200", "indent":
"true", "fl": "decade", "wt": "json", "_": "1542773791855" } }, "response": { "numFound":
3665450508, "start": 0, "maxScore": 1.9315376, "docs": [ { "decade": "200" }, { "decade":
"200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200"
}, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" } ] }
}}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message