1
0

aggregations.asciidoc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [discrete]
  2. [[breaking_80_aggregations_changes]]
  3. ==== Aggregations changes
  4. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  5. //Installation and Upgrade Guide
  6. //tag::notable-breaking-changes[]
  7. [[remove-term-order-key]]
  8. .The `terms` aggregation no longer supports the `_term` order key.
  9. [%collapsible]
  10. ====
  11. *Details* +
  12. The `terms` aggregation no longer supports the `_term` key in `order` values. To
  13. sort buckets by their term, use `_key` instead.
  14. *Impact* +
  15. Discontinue use of the `_term` order key. Requests that include a `_term` order
  16. key will return an error.
  17. ====
  18. [[remove-time-order-key]]
  19. .The `date_histogram` aggregation no longer supports the `_time` order key.
  20. [%collapsible]
  21. ====
  22. *Details* +
  23. The `date_histogram` aggregation no longer supports the `_time` key in `order`
  24. values. To sort buckets by their key, use `_key` instead.
  25. *Impact* +
  26. Discontinue use of the `_time` order key. Requests that include a `_time` order
  27. key will return an error.
  28. ====
  29. [[remove-moving-avg-agg]]
  30. .The `moving_avg` aggregation has been removed.
  31. [%collapsible]
  32. ====
  33. *Details* +
  34. The `moving_avg` aggregation was deprecated in 6.4 and has been removed. To
  35. calculate moving averages, use the
  36. {ref}/search-aggregations-pipeline-movfn-aggregation.html[`moving_fn`
  37. aggregation] instead.
  38. *Impact* +
  39. Discontinue use of the `moving_avg` aggregation. Requests that include the
  40. `moving_avg` aggregation will return an error.
  41. ====
  42. [[percentile-duplication]]
  43. .The `percentiles` aggregation's `percents` parameter no longer supports duplicate values.
  44. [%collapsible]
  45. ====
  46. *Details* +
  47. If you specify the `percents` parameter with the
  48. {ref}/search-aggregations-metrics-percentile-aggregation.html[`percentiles` aggregation],
  49. its values must be unique. Otherwise, an exception occurs.
  50. *Impact* +
  51. Use unique values in the `percents` parameter of the `percentiles` aggregation.
  52. Requests containing duplicate values in the `percents` parameter will return
  53. an error.
  54. ====
  55. [[date-histogram-interval]]
  56. .The `date_histogram` aggregation's `interval` parameter is no longer valid.
  57. [%collapsible]
  58. ====
  59. *Details* +
  60. It is now an error to specify the `interval` parameter to the
  61. {ref}/search-aggregations-bucket-datehistogram-aggregation.html[`date_histogram`
  62. aggregation] or the
  63. {ref}/search-aggregations-bucket-composite-aggregation.html#_date_histogram[`composite
  64. date_histogram` source. Instead, please use either `calendar_interval` or
  65. `fixed_interval` as appropriate.
  66. *Impact* +
  67. Uses of the `interval` parameter in either the `date_histogram` aggregation or
  68. the `date_histogram` composite source will now generate an error. Instead
  69. please use the more specific `fixed_interval` or `calendar_interval`
  70. parameters.
  71. ====
  72. // end::notable-breaking-changes[]