Selaa lähdekoodia

[DOCS] Fix incorrect statement for `aggregate_metric_double` field type (#92961)

Documentation incorrectly states that all aggregations are supported by
the `aggregate_metric_double` field.

This PR rectifies this  error.

Closes #92236
Christos Soulios 2 vuotta sitten
vanhempi
commit
a183843893
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      docs/reference/mapping/types/aggregate-metric-double.asciidoc

+ 5 - 3
docs/reference/mapping/types/aggregate-metric-double.asciidoc

@@ -92,9 +92,11 @@ aggregation returns the sum of the values of all `value_count` sub-fields.
 and `value_count` metrics. To run an `avg` aggregation, the field must contain
 both `sum` and `value_count` metric sub-field.
 
-If you use an `aggregate_metric_double` field with other aggregations, the field
-uses the `default_metric` value, which behaves as a `double` field. The
-`default_metric` is also used in scripts and the following queries:
+Running any other aggregation on an `aggregate_metric_double` field will fail with
+an "unsupported aggregation" error.
+
+Finally, an `aggregate_metric_double` field supports the following queries for which
+it behaves as a `double` by delegating its behavior to its `default_metric` sub-field:
 
 * <<query-dsl-exists-query,`exists`>>
 * <<query-dsl-range-query,`range`>>