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

Omit min/max aggregations when there are no values in a bucket

    XMLWordPrintableJSON

Details

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

    Description

      min/max currently return NaN when there are no values for a bucket.
      This is problematic in JSON format, which has no support for NaN. It becomes a bigger issue for typed support like long values where NaN doesn't make sense, and even worse for String fields, since 'NaN' is an actual valid string value. Instead, we should just omit the aggregation value altogether.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: