elasticsearch-query-optimization
Apache-2.0Updated on Nov 10, 2026605GitHub stars
Elastic's skill for speeding up slow Query DSL searches in Elasticsearch based on measurement rather than guesswork.
What the skill teaches
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.
Capabilities
- Profile a slow Elasticsearch search
- Find the most expensive query clause
- Move non-scoring clauses into filter context
- Re-measure a rewritten query
About
- Publisher
- Elastic
- Tool
- Elasticsearch
Install
What's inside
- references/query-optimization-reference.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Elasticsearch | |
| Publisher | Elastic | source |
| Official status | OfficialElastic's own GitHub organisation; README calls it the official Agent Skills library | source |
| Status | Technical Preview | source |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | Apache-2.0 | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 2026605 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository |
Sources
- Skill file (SKILL.md)github.com/elastic/agent-skillsNov 10, 2026
- README (README.md)github.com/elastic/agent-skills · Backs: Official status, StatusNov 12, 2026
- Licence file (LICENSE)github.com/elastic/agent-skills · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/elastic/agent-skills · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (elasticsearch-query-optimization)github.com/elastic/agent-skills · Backs: Includes scriptsNov 10, 2026