Skip to content

Commit c580965

Browse files
authored
[DOCS] Fix incorrect statement for aggregate_metric_double field type (#92961) (#92962)
Documentation incorrectly states that all aggregations are supported by the `aggregate_metric_double` field. This PR rectifies this error. Closes #92236
1 parent 07b7983 commit c580965

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/reference/mapping/types/aggregate-metric-double.asciidoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ aggregation returns the sum of the values of all `value_count` sub-fields.
9494
and `value_count` metrics. To run an `avg` aggregation, the field must contain
9595
both `sum` and `value_count` metric sub-field.
9696

97-
If you use an `aggregate_metric_double` field with other aggregations, the field
98-
uses the `default_metric` value, which behaves as a `double` field. The
99-
`default_metric` is also used in scripts and the following queries:
97+
Running any other aggregation on an `aggregate_metric_double` field will fail with
98+
an "unsupported aggregation" error.
99+
100+
Finally, an `aggregate_metric_double` field supports the following queries for which
101+
it behaves as a `double` by delegating its behavior to its `default_metric` sub-field:
100102

101103
* <<query-dsl-exists-query,`exists`>>
102104
* <<query-dsl-range-query,`range`>>

0 commit comments

Comments
 (0)