Fix slow Elasticsearch searches with evidence.
Diagnoses slow Elasticsearch searches and provides query rewrites checked against before-and-after profiling.
When to use it
Use for slow searches, expensive profiled clauses, exact-match filters in scoring context, or latency dominated by leading wildcards.
Give it an index name or pattern and a slow Query DSL body; it returns a diagnosis, optimized query, and measured comparison.
What you provide
Requires the elastic CLI version 0.2 or later with stack es support; if unavailable, the agent must stop rather than bypass it.
Requires a reachable Elasticsearch 8.x or 9.x deployment, whether self-managed, Elastic Cloud Hosted, or Elastic Cloud Serverless.
This skill
Elasticsearch
Reads Elasticsearch mappings and search profiles