Skip to content

Commit

Permalink
[DOCS] Simplifies composite aggregation recommendation (#89878) (#89884)
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve authored Sep 7, 2022
1 parent 3665655 commit 05e1366
Showing 1 changed file with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ such as `terms`.
the name of the field that contains the count of raw data points that have been
aggregated. It applies to all detectors in the job.

* The influencers or the partition fields must be included in the aggregation of
your {dfeed}, otherwise they are not included in the job analysis. For more
information on influencers, refer to <<ml-ad-influencers>>.


[discrete]
[[aggs-interval]]
Expand Down Expand Up @@ -83,11 +87,8 @@ type of analysis.
<<ml-rare-functions,rare>> functions, set the interval to the same value as the
bucket span.

* By default, {es} limits the maximum number of terms returned to 10000. For
high cardinality fields, the query might not run. It might return errors related
to circuit breaking exceptions that indicate that the data is too large. When
you use a terms aggregation and the cardinality of a term is high but still
significantly less than your total number of documents, use
* If you have multiple influencers or partition fields or if your field
cardinality is more than 1000, use
{ref}/search-aggregations-bucket-composite-aggregation.html[composite aggregations].
+
--
Expand All @@ -109,12 +110,6 @@ GET .../_search
// NOTCONSOLE
--

* When you use a `term` aggregation to gather influencer or partition field
information, consider using a `composite` aggregation. It performs better than a
`date_histogram` with a nested `term` aggregation and also includes all the
values of the field instead of the top values per bucket. For more information
on influencers, refer to <<ml-ad-influencers>>.


[discrete]
[[aggs-using-date-histogram]]
Expand Down

0 comments on commit 05e1366

Please sign in to comment.