elasticsearch/docs/reference/aggregations
edh-oss 62a471aefe
Update JSON parser and snippets (#77983)
Related to issue  #77823

This does the following:

- Updates several asciidoc files that contained code snippets with
  invalid JSON, most involving unnecessary trailing commas.

- Makes the switch from the Groovy JSON parser to the Jackson parser,
  pursuant to the general goal of eliminating Groovy dependence.

- Makes testing of JSON validity at build time more strict.

Note that this update still allows backslash escaping for any
character. Currently that matters because of the file
"docs/reference/ml/anomaly-detection/apis/get-datafeed-stats.asciidoc",
specifically this part:

    "attributes" : {
      "ml.machine_memory" :
        "$body.datafeeds.0.node.attributes.ml\.machine_memory",
      "ml.max_open_jobs" : "512"
    }

It's not clear to me what change, if any, is appropriate there. So,
I've left in the escaped period and configured the parser to ignore
it for the time being.
2021-09-20 11:08:26 +01:00
..
bucket Update JSON parser and snippets (#77983) 2021-09-20 11:08:26 +01:00
metrics Adds support for the rate aggregation under a composite agg (#76992) 2021-09-01 07:29:13 -04:00
pipeline Update JSON parser and snippets (#77983) 2021-09-20 11:08:26 +01:00
bucket.asciidoc [DOCS] Deduplicate docs for search.max_buckets 2021-06-29 08:42:01 -04:00
metrics.asciidoc [DOCS] Fix acasting for agg types (#67469) 2021-01-13 14:44:54 -05:00
pipeline.asciidoc Add keep_values gap policy (#73297) 2021-06-08 09:47:29 -10:00