Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7800

avg() facet function counts missing values

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3
    • Facet Module
    • None

    Description

      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))

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yseeley@gmail.com Yonik Seeley
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment