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

avg() facet function counts missing values

    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

        1. SOLR-7800.patch
          2 kB
          Yonik Seeley

        Activity

          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: