Open mukeshelastic opened 4 years ago
The clauses of the log entries query are contained in a top-level bool
filter
clause, which has the same effect as using constant_score
: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html#score-bool-filter
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)
Describe the feature: As part of Loki competitive benchmark, ES performance team provided a recommendation that may improve ES query performance significantly. Let's evaluate the recommendation of adding constant_score parameter in ES queries to check for performance gains w/o any functional regressions. https://github.com/elastic/elasticsearch-benchmarks/issues/17#issuecomment-515022108 Describe a specific use case for the feature: Query performance improvement in Logs UI