bucket.asciidoc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 into" 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. NOTE: The <<search-settings-max-buckets,`search.max_buckets`>> cluster setting
  13. limits the number of buckets allowed in a single response.
  14. include::bucket/adjacency-matrix-aggregation.asciidoc[]
  15. include::bucket/autodatehistogram-aggregation.asciidoc[]
  16. include::bucket/categorize-text-aggregation.asciidoc[]
  17. include::bucket/children-aggregation.asciidoc[]
  18. include::bucket/composite-aggregation.asciidoc[]
  19. include::bucket/datehistogram-aggregation.asciidoc[]
  20. include::bucket/daterange-aggregation.asciidoc[]
  21. include::bucket/diversified-sampler-aggregation.asciidoc[]
  22. include::bucket/filter-aggregation.asciidoc[]
  23. include::bucket/filters-aggregation.asciidoc[]
  24. include::bucket/geodistance-aggregation.asciidoc[]
  25. include::bucket/geohashgrid-aggregation.asciidoc[]
  26. include::bucket/geotilegrid-aggregation.asciidoc[]
  27. include::bucket/global-aggregation.asciidoc[]
  28. include::bucket/histogram-aggregation.asciidoc[]
  29. include::bucket/iprange-aggregation.asciidoc[]
  30. include::bucket/missing-aggregation.asciidoc[]
  31. include::bucket/multi-terms-aggregation.asciidoc[]
  32. include::bucket/nested-aggregation.asciidoc[]
  33. include::bucket/parent-aggregation.asciidoc[]
  34. include::bucket/range-aggregation.asciidoc[]
  35. include::bucket/rare-terms-aggregation.asciidoc[]
  36. include::bucket/reverse-nested-aggregation.asciidoc[]
  37. include::bucket/sampler-aggregation.asciidoc[]
  38. include::bucket/significantterms-aggregation.asciidoc[]
  39. include::bucket/significanttext-aggregation.asciidoc[]
  40. include::bucket/terms-aggregation.asciidoc[]
  41. include::bucket/variablewidthhistogram-aggregation.asciidoc[]
  42. include::bucket/range-field-note.asciidoc[]