elasticsearch-query-optimization
Diagnose slow Elasticsearch Query DSL searches and propose measured fixes. Use when a search is slow, profile output shows an expensive clause, exact-match filters sit in scoring context, or leading wildcards dominate latency. Ground every recommendation in search profiling — move non-scoring clauses to filter context, eliminate leading wildcards, and re-profile to confirm improvement.
- Version
- 0.1.0
- Compatibility
- Elasticsearch 8.x or 9.x, self-managed, Elastic Cloud Hosted, or Elastic Cloud Serverless; relies on the search profiling API available on all deployment types. Requires the `elastic` CLI ≥ 0.2 with `stack es` support.
Pinned to revision 7f467b547325, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/elasticsearch-query-optimization/SKILL.md
- skills/elasticsearch-query-optimization/references/query-optimization-reference.md
Every link opens the file at its source, pinned to the revision this page describes.