[ https://issues.apache.org/jira/browse/SOLR-7845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14645182#comment-14645182 ]
Bill Bell commented on SOLR-7845: --------------------------------- OK, it might have to do with query($qq, DEFAULT) http://localhost:8983/solr/select?q=*:*&fl=pwid,sum(0,query($qq,5.0))&qq={!lucene}pwid:2 This returns no default: <doc> <str name="pwid">2KSTV</str> </doc> <doc> <str name="pwid">X9F6L</str> </doc> <doc> <str name="pwid">2N8LQ</str> </doc> > sum should treat NULL as 0 > -------------------------- > > Key: SOLR-7845 > URL: https://issues.apache.org/jira/browse/SOLR-7845 > Project: Solr > Issue Type: Bug > Reporter: Bill Bell > > sum(0,query()) used to treat the NULL values in query as 0. It stopped > working in SOLR 5. > Do we want to fix this? > {noformat} > http://localhost:8983/solr/select?hqval1=pwid:2&q=*:*&fl=pwid,$y&y=sum(0,query({!lucene%20v=$hqval1})) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org