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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1
    • Component/s: Facet Module
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: