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

Filter context no longer used #39724

Closed
JacobBrandt opened this issue Jun 26, 2019 · 2 comments
Closed

Filter context no longer used #39724

JacobBrandt opened this issue Jun 26, 2019 · 2 comments
Labels
Feature:Filters Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@JacobBrandt
Copy link
Contributor

Kibana version: Since at least 5.3

Filter context no longer gets used like it used to when creating filters. You can no longer affect the score of returned documents by placing clauses in a filter instead of defining that clause in a query. You use to be able to have filter in the filter bar that would put that part of the request in the filter context. Now every non negated filter is going into the must section which is part of the query context and not the filter context.

This is worse behavior because frequently used filters will be cached automatically by Elasticsearch to speed up performance. But since a lot of clauses are not getting put in the filter context we're losing this performance benefit. Our users complained when we moved to 5.3 but we thought it was more of a cluster issue. Now we know that Kibana stopped using filter context performance benefits for filters.

@markov00 markov00 added Feature:Filters Team:Visualizations Visualization editors, elastic-charts and infrastructure triage_needed labels Jun 27, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@Bargs
Copy link
Contributor

Bargs commented Jul 25, 2019

Duplicate of #8367

@Bargs Bargs marked this as a duplicate of #8367 Jul 25, 2019
@Bargs Bargs closed this as completed Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Filters Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants