Skill / SKILL.md

Elasticsearch Query Optimization

elastic/agent-skills

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.
2 views 614 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/elastic/agent-skills' skill-source

Use the complete skill-source/plugins/elasticsearch/skills/elasticsearch-query-optimization directory with your client’s skill installer.

  • plugins/elasticsearch/skills/elasticsearch-query-optimization

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/elasticsearch/skills/elasticsearch-query-optimization

Compatibility & requirements

Declared 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.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Needs source review
Checked at
Pending source check
Content SHA-256
8de577dc2ef30717fe57b86a431e9a8ca9991eeeff51786749dbb3e45598b6cb
Format validation findings
  • Metadata requires string values.
Agent Skills specification
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills