How to add a Field to Range Aggregation?
In order to use a field there it has to mapped as number in elasticsearch. Can you share what the mappings look like for the field we want?
Ah Kibana thinks its a string for some reason.
We can check the elasticsearch mappings directly with
in dev tools.
If it says keyword or text there we'll have to reindex the data with a numeric type. If it is a numeric type we can click the refresh icon on the index page in Kibana.
Yup, one of these: https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html.
If it has decimals, float or double, if not long or integer.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.