You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/16 20:29:05 UTC

[jira] [Commented] (SOLR-7800) avg() facet function counts missing values

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

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

Commit 1691430 from [~yonik@apache.org] in branch 'dev/trunk'
[ https://svn.apache.org/r1691430 ]

SOLR-7800: avg facet function should skip missing values

> avg() facet function counts missing values
> ------------------------------------------
>
>                 Key: SOLR-7800
>                 URL: https://issues.apache.org/jira/browse/SOLR-7800
>             Project: Solr
>          Issue Type: Bug
>          Components: Facet Module
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>         Attachments: SOLR-7800.patch
>
>
> The avg() facet function currently counts missing values as 0 (so the average of [3,3,missing] is currently 2 instead of 3.
> We should change it so that missing values are entirely skipped.
> If 0 values are desired for missing values, that can be expressed using the "def" function query:  avg(def(myfield,0))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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