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

Erick Erickson commented on SOLR-13175:
---------------------------------------

This appears to be that NULL and zero are treated equivalently.

> Rollup does not roll up NULL values.
> ------------------------------------
>
>                 Key: SOLR-13175
>                 URL: https://issues.apache.org/jira/browse/SOLR-13175
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Erick Erickson
>            Priority: Major
>
> Steps to reproduce:
> - Create a 2-shard collection for sample tech products configs and index all 
> the example documents to it (I always use "eoe" as my collection ;) )
> - Submit this expression:
> {code{
> rollup(
>       search(eoe, q="*:*", fl="popularity", qt="/export", sort="popularity 
> asc"),
> over="popularity",count(*))
> {code}
> Results: Note that the "NULL" bucket is repeated, presumably once from each 
> shard. The rest of the rollup is aggregated appropriately.
> {code}
> {
>   "result-set": {
>     "docs": [
>       {
>         "count(*)": 15,
>         "popularity": "NULL"
>       },
>       {
>         "count(*)": 1,
>         "popularity": 0
>       },
>       {
>         "count(*)": 2,
>         "popularity": "NULL"
>       },
>       {
>         "count(*)": 2,
>         "popularity": 1
>       },
> etc.
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to