LisaHJung / Part-4-Running-Aggregations-with-Elasticsearch-and-Kibana

75 stars 55 forks source link

refactor: replace z by y in request format #5

Open Olfredos6 opened 1 year ago

Olfredos6 commented 1 year ago

Under the Range Aggregation section, the query format uses the following range:

{...
    "ranges": [
          {
            "to": x
          },
          {
            "from": x,
            "to": y
          },
          {
            "from": z
          }
        ]
}

This assumes that x != y != z and that the third range ({"from": z} starts from a value that's not a boundary of the previous range. However, the example that ensues uses {"from": 50, "to": 200} as the second range. Then, {"from": 200} is the last range. This needs to be more consistent and could lead to clarity.