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

Visualize: Recommend filter aggs as first aggs #6625

Closed
spalger opened this issue Mar 23, 2016 · 4 comments
Closed

Visualize: Recommend filter aggs as first aggs #6625

spalger opened this issue Mar 23, 2016 · 4 comments
Labels
discuss Feature:Vis Editor Visualization editor issues release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@spalger
Copy link
Contributor

spalger commented Mar 23, 2016

In the aggregation builder we should start recommending that users increase the priority for filter aggregations. Since they are static (they don't change when evaluated in the context of a bucket) there really isn't any reason to run them lower in the tree.

One of the side effects of running them lower in the tree is the creation of buckets in places you wouldn't expect. For instance, pr #6574 aims to add zero-filtering to visualizations, when the actual issue is that the filter is being evaluated in the context of every bucket, and producing a bucket regardless if there are documents or not.

@androidkencai
Copy link

@spalger I am doing research to see if Kibana can generate filter aggregation in Visualize - aggregation builder.
currently, kibana has

 Schemas([{
  group: 'metrics',
....
  aggFilter: ['count', 'avg', 'sum', 'min', 'max', 'cardinality', 'std_dev']
}])

additionally to have filter in the dropdown
k4-filter-aggregation

is it the same thing as this issue? if so, it's labelled as P2, when do we expect to have this support?
Thanks!
KC

@spalger
Copy link
Contributor Author

spalger commented Apr 14, 2016

Actually this is about putting up a warning when filter aggs are not the top bucket agg

the difference between this:
image

and this:
image

The reason for this more apparent when you zoom in closer and start finding x-axis buckets that don't have any documents. When the filters are the first aggregation the lines in the chart skip over the empty buckets:

image

But when the filters are last calculated second they produce zero-values inside buckets that don't have any documents.

image

@androidkencai
Copy link

@spalger thanks for clarifying this, I will open a new issue for supporting the filter aggregation in the metrics group

@tbragin tbragin added the Feature:Visualizations Generic visualization features (in case no more specific feature label is available) label Nov 15, 2016
@epixa epixa removed the P2 label Apr 25, 2017
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@timroes timroes added Feature:Vis Editor Visualization editor issues intent-discuss and removed Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Oct 27, 2018
@timroes
Copy link
Contributor

timroes commented Nov 7, 2018

We addressed this issue recently in some discussions and we currently don't have plans to add this warning in the existing visual editor anymore. The new visual editor (#17076) will use a different approach of ordering visualizations, which hopefully won't cause that kind of UX issues with users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Feature:Vis Editor Visualization editor issues release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants