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

avg() facet function counts missing values

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate 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 Assign to me
            yseeley@gmail.com Yonik Seeley
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment