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

stats component | mal-formatted json response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.1
    • None
    • None
    • None

    Description

      I am getting a mal-formatted json response when using the
      stats component with a facet that returns a stddev value of NaN ,e.g

      "facet-1":

      { "min":0.0604898, "max":0.0604898, "sum":1.209796, "count":20, "missing":0, "sumOfSquares":0.0731803180808, "mean":0.0604898, "stddev":NaN }

      ,
      I have submitted my complete response to

      http://jsonformatter.curiousconcept.com

      and got the following exception:

      Warning:Invalid quotes on string for the line with "stddev":NaN
      The Solr response broke my PHP code; replacing "NaN" with 0.0 solved the issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              biofox biofox
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: