aggregations.asciidoc 1.0 KB

12345678910111213141516171819202122
  1. [[breaking_50_aggregations_changes]]
  2. === Aggregation changes
  3. ==== Significant terms on numeric fields
  4. Numeric fields have been refactored to use a different data structure that
  5. performs better for range queries. However, since this data structure does
  6. not record document frequencies, numeric fields need to fall back to running
  7. queries in order to estimate the number of matching documents in the
  8. background set, which may incur a performance degradation.
  9. It is recommended to use <<keyword,`keyword`>> fields instead, either directly
  10. or through a <<multi-fields,multi-field>> if the numeric representation is
  11. still needed for sorting, range queries or numeric aggregations like
  12. <<search-aggregations-metrics-stats-aggregation,`stats` aggregations>>.
  13. ==== `ip_range` aggregations
  14. Now that Elasticsearch supports `ipv6`, `ip` addresses are encoded in the index
  15. using a binary representation rather than a numeric representation. As a
  16. consequence, the output of `ip_range` aggregations does not give numeric values
  17. for `from` and `to` anymore.