OpenSearch/docs/reference/search
Nik Everett 126619ae3c
Add list of defered aggregations to the profiler (backport of #56208) (#56682)
This adds a few things to the `breakdown` of the profiler:
* `histogram` aggregations now contain `total_buckets` which is the
  count of buckets that they collected. This could be useful when
  debugging a histogram inside of another bucketing agg that is fairly
  selective.
* All bucketing aggs that can delay their sub-aggregations will now add
  a list of delayed sub-aggregations. This is useful because we
  sometimes have fairly involved logic around which sub-aggregations get
  delayed and this will save you from having to guess.
* Aggregtations wrapped in the `MultiBucketAggregatorWrapper` can't
  accurately add anything to the breakdown. Instead they the wrapper
  adds a marker entry `"multi_bucket_aggregator_wrapper": true` so we
  can be quickly pick out such aggregations when debugging.

It also fixes a bug where `_count` breakdown entries were contributing
to the overall `time_in_nanos`. They didn't add a large amount of time
so it is unlikely that this caused a big problem, but I was there.

To support the arbitrary breakdown data this reworks the profiler so
that the `breakdown` can contain any data that is supported by
`StreamOutput#writeGenericValue(Object)` and
`XContentBuilder#value(Object)`.
2020-05-13 16:33:22 -04:00
..
request [DOCS] Relocate request body param docs to search API docs (#56436) 2020-05-11 11:29:38 -04:00
suggesters [Test] Don't expect specific scores in docs tests (#54297) 2020-03-27 10:27:47 +01:00
async-search.asciidoc [DOCS] Async search: clarify behaviour when submit returns final results (#55934) 2020-05-06 10:01:23 +02:00
count.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) (#52697) 2020-02-24 11:57:32 +01:00
explain.asciidoc Upgrade to lucene 8.4.0-snapshot-662c455. (#50016) (#50039) 2019-12-10 18:04:58 +01:00
field-caps.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) (#52697) 2020-02-24 11:57:32 +01:00
multi-search.asciidoc Repurpose `ignore_throttled` to be only about frozen indices. (#55047) (#55852) 2020-04-28 14:31:54 +02:00
profile.asciidoc Add list of defered aggregations to the profiler (backport of #56208) (#56682) 2020-05-13 16:33:22 -04:00
rank-eval.asciidoc Adds recall@k metric to rank eval API (#52889) 2020-02-27 16:04:24 +01:00
request-body.asciidoc [DOCS] Relocate request body param docs to search API docs (#56436) 2020-05-11 11:29:38 -04:00
search-shards.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) (#52697) 2020-02-24 11:57:32 +01:00
search-template.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) (#52697) 2020-02-24 11:57:32 +01:00
search.asciidoc [DOCS] Relocate request body param docs to search API docs (#56436) 2020-05-11 11:29:38 -04:00
suggesters.asciidoc [DOCS] Reformat suggesters page. (#47010) 2019-09-25 14:42:16 +02:00
uri-request.asciidoc [DOCS] Remove invalid search API query parameters (#55884) (#56212) 2020-05-05 11:10:34 -04:00
validate.asciidoc [Docs] Clarify default value for `allow_no_indices` (#52635) (#52697) 2020-02-24 11:57:32 +01:00