bucket.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [[search-aggregations-bucket]]
  2. == Bucket Aggregations
  3. Bucket aggregations don't calculate metrics over fields like the metrics aggregations do, but instead, they create
  4. buckets of documents. Each bucket is associated with a criterion (depending on the aggregation type) which determines
  5. whether or not a document in the current context "falls" into it. In other words, the buckets effectively define document
  6. sets. In addition to the buckets themselves, the `bucket` aggregations also compute and return the number of documents
  7. that "fell in" to each bucket.
  8. Bucket aggregations, as opposed to `metrics` aggregations, can hold sub-aggregations. These sub-aggregations will be
  9. aggregated for the buckets created by their "parent" bucket aggregation.
  10. There are different bucket aggregators, each with a different "bucketing" strategy. Some define a single bucket, some
  11. define fixed number of multiple buckets, and others dynamically create the buckets during the aggregation process.
  12. include::bucket/children-aggregation.asciidoc[]
  13. include::bucket/datehistogram-aggregation.asciidoc[]
  14. include::bucket/daterange-aggregation.asciidoc[]
  15. include::bucket/filter-aggregation.asciidoc[]
  16. include::bucket/filters-aggregation.asciidoc[]
  17. include::bucket/geodistance-aggregation.asciidoc[]
  18. include::bucket/geohashgrid-aggregation.asciidoc[]
  19. include::bucket/global-aggregation.asciidoc[]
  20. include::bucket/histogram-aggregation.asciidoc[]
  21. include::bucket/iprange-aggregation.asciidoc[]
  22. include::bucket/missing-aggregation.asciidoc[]
  23. include::bucket/nested-aggregation.asciidoc[]
  24. include::bucket/range-aggregation.asciidoc[]
  25. include::bucket/reverse-nested-aggregation.asciidoc[]
  26. include::bucket/sampler-aggregation.asciidoc[]
  27. include::bucket/significantterms-aggregation.asciidoc[]
  28. include::bucket/terms-aggregation.asciidoc[]