elasticsearch-kopf icon indicating copy to clipboard operation
elasticsearch-kopf copied to clipboard

rest console: Autoformating of doubles...

Open cherweg opened this issue 8 years ago • 0 comments

There is a probably Problem with the autoindent / autoformat Feature in the rest console of kopf (2.1.2).

If you have a query with e.g.:

              "mypercentile": {
                "percentiles_bucket": {
                  "buckets_path": "queries>percentiles",
                  "percents": [
                    90.0
                  ]
                }
              }

The Gui saves the 90.0 as 90. This results in an elasticsearch error:

"error": { "root_cause": [ { "type": "parse_exception", "reason": "parse_exception: Parameter [percents] must be an array of doubles, type ArrayList provided instead" }

Workaround: use "90.01"

regards Christian

cherweg avatar Dec 09 '16 08:12 cherweg