Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

rest console: Autoformating of doubles... #387

Open
cherweg opened this issue Dec 9, 2016 · 0 comments
Open

rest console: Autoformating of doubles... #387

cherweg opened this issue Dec 9, 2016 · 0 comments

Comments

@cherweg
Copy link

cherweg commented Dec 9, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant