You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I got this error:
AggregationExecutionException[Invalid terms aggregation order path [review_score_avg.value]. Terms buckets can only be sorted on a sub-aggregator path that is built out of zero or more single-bucket aggregations within the path and a final single-bucket or a metrics aggregation at the path end.
It seems the ScriptedMetricAggregator extends MetricsAggregator, but not NumericMetricAggregator in the current version, thus can not be used as an order path.
The text was updated successfully, but these errors were encountered:
This is indeed a limitation of the current implementation of script_metric aggregation. The issue is tracked here #8486. Closing in favour of that existing issue.
I am currently using version 1.4.1. I created a scripted metric aggregations and want to sort the buckets by the scripted metric:
However, I got this error:
AggregationExecutionException[Invalid terms aggregation order path [review_score_avg.value]. Terms buckets can only be sorted on a sub-aggregator path that is built out of zero or more single-bucket aggregations within the path and a final single-bucket or a metrics aggregation at the path end.
It seems the
ScriptedMetricAggregator extends MetricsAggregator
, but notNumericMetricAggregator
in the current version, thus can not be used as an order path.The text was updated successfully, but these errors were encountered: