[maps] discuss deprecating "Top term" metric for cluster and grid layers #124397
Labels
discuss
Feature:Maps
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
usability
Should "Top term" metric be deprecated for cluster and grid layers?
History
"Top term" metric was added to support blended layer styling. We needed a metric for string fields so that document layers styled by a string field could have similar styling when showing clusters.
There are no string metrics in Elasticsearch. To implement the feature, we are requesting a bucket terms aggregation and taking the top value and the percentage that this top value represents in the data set.
Why "Top term" metric is a problem
Elasticsearch vector tile aggs request parameter only accepts metric aggregations. Since "Top terms" aggregation is a made-up concept in Kibana maps, it does not exist in Elasticsearch. As such, there is no "Top terms" support in Elasticsearch vector tile API.
Lack of support for "Top terms" is blocking migration from geojson to vector tiles for cluster/grid layers at lower resolutions. Cluster and grid sources use vector tiles at "SUPER_FINE" resolution and GeoJson at "COARSE", "FINE", and "MOST_FINE".
New features like hex bins exacerbate the problem.
Solution
There are 2 places to resolve the problem
Near-term proposal
The text was updated successfully, but these errors were encountered: