Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow integer fields in significant terms aggregation #40368

Closed
SebastienJn opened this issue Jul 4, 2019 · 5 comments
Closed

Allow integer fields in significant terms aggregation #40368

SebastienJn opened this issue Jul 4, 2019 · 5 comments
Labels
enhancement New value added to drive a business result Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) good first issue low hanging fruit Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@SebastienJn
Copy link

Kibana version: 6.6

In Kibana visualizations, would it be possible to have integer fields available for the significant terms aggregation ?

This is permitted by ES queries, the documentation specifies that only the floating point fields are not supported: search-aggregations-bucket-significantterms-aggregation.html.

The query generated by Kibana just works when changing the target field to an integer one manually (e.g. of type “long”).

@monfera
Copy link
Contributor

monfera commented Jul 4, 2019

Hello @SebastienJn it's more of a question so https://discuss.elastic.co/c/kibana would be the place to ask, as issues here are mostly for bugs, accessibility issues and feature requests.

@monfera monfera closed this as completed Jul 4, 2019
@monfera monfera reopened this Jul 4, 2019
@monfera
Copy link
Contributor

monfera commented Jul 4, 2019

@SebastienJn I'm reopening it as a feature request after a consultation

@monfera monfera added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jul 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@monfera monfera added the enhancement New value added to drive a business result label Jul 4, 2019
@markov00 markov00 added the Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) label Jul 4, 2019
@timroes timroes added the good first issue low hanging fruit label Sep 24, 2019
@timroes
Copy link
Contributor

timroes commented Oct 29, 2019

We need to extend the filter logic for field types a bit for that. Currently you can only specify a filter on the field parameter, for kibana field types. In Kibana we have only the numeric field type. Unfortunately the significant terms aggregation doesn't work with all ES field types, that we map to the numeric field type in Kibana (e.g. not with floating point ES field types). So that filter would need to be able to also filter on more than just the Kibana field type, but maybe also accept a function instead of a string which will get passed in the full field object and can then look into the ES field type in the information to filter for that.

@stratoula
Copy link
Contributor

We are tracking the significant terms in other issue #116421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) good first issue low hanging fruit Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants