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

avg() facet function counts missing values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: Facet Module
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: