本文へスキップ
Kitbay
スキル公式Technical Preview

elasticsearch-query-optimization

Apache-2.02026年11月10日 更新605GitHubスター

Elastic's skill for speeding up slow Query DSL searches in Elasticsearch based on measurement rather than guesswork.

スキルの内容

Elastic's skill for speeding up slow Query DSL searches in Elasticsearch based on measurement rather than guesswork. The agent runs the query with profiling turned on, finds the clause that costs the most, rewrites the query to remove that cost while keeping the same matches, for example by moving exact-match clauses into filter context or removing leading wildcards, and profiles again to show the change. It works on self-managed, Cloud Hosted and Serverless deployments through Elastic's elastic command-line tool.

できること

  • Profile a slow Elasticsearch search
  • Find the most expensive query clause
  • Move non-scoring clauses into filter context
  • Re-measure a rewritten query