
Elasticsearch Query Optimization
elastic/agent-skills/plugins/elasticsearch/skills/elasticsearch-query-optimizationby elasticbaa511126ba2dc37b52e273b52734f8e4e0d323cNo license592 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated yesterday
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.
Add to a SourceWeft workspace
- Open the skill in your dashboard and add it to a workspace.
- Enable it for the chats that should use it.
This skill is instructions only: it ships no scripts to execute.
Add to SourceWeftYou will be asked to sign in first, then taken straight to this skill.
Ask your agent to install it
Paste this prompt into Claude Code, Codex, Cursor or another agent that can run commands — or into SourceWeft chat. The agent reads this skill's install guide, shows you its source, license and scripts, and installs it with the SourceWeft CLI once you agree.
Read https://sourceweft.com/skills/gh-elastic-agent-skills-elasticsearch-query-optimization-plugins-elasticsearch-skills-elasticsearch-query-optimization-443c340f26b72f23/install.md and install the skill it describes. Before installing, show me its source, license and whether it ships scripts, and wait for my OK. Ask me before changing anything else on my machine.Install it yourself from a terminal
For Claude Code, Codex, Cursor and other local agents. The SourceWeft CLI fetches the skill from its source repository at the commit scanned here, and verifies every file against the hashes recorded when the skill was scanned. If anything differs, nothing is written.
npx @sourceweft/cli skills install @elastic/elasticsearch-query-optimization-plugins-elasticsearch-skillsAdd --agent claude-code, codex, cursor or universal to choose which agent gets it (Claude Code by default).
Upstream installer — not verified by SourceWeft
The open-source skills installer fetches the same pinned commit, but does not check the files against the hashes SourceWeft recorded.
npx skills add https://github.com/elastic/agent-skills/tree/baa511126ba2dc37b52e273b52734f8e4e0d323c/plugins/elasticsearch/skills/elasticsearch-query-optimizationSource and attribution
Source:elastic/agent-skillsinplugins/elasticsearch/skills/elasticsearch-query-optimizationat commitbaa5111
License: No license
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from elastic/agent-skills

Elasticsearch Search Relevance
elastic
Tunes Elasticsearch full-text search relevance using query rules for pinning and multi_match field boosts for ranking.

Kibana Dashboards
elastic
Create and manage Kibana Dashboards and Lens visualizations. Use when you need to define dashboards and visualizations declaratively, version control them, or automate their deployment.

Elasticsearch Ingest
elastic
Load CSV and JSON files into Elasticsearch indices using the bulk API and explicit mappings when field types matter. Use when batch-importing local files, converting CSV rows or JSON arrays to NDJSON bulk format, or verifying document counts and mappings after ingest — not for Logstash pipelines, Beats, custom scripts, or index-to-index reindex.

Elasticsearch Index Design
elastic
Designs and reviews Elasticsearch index mappings from access patterns, covering field types, multi-fields, and shard settings.

Kibana Anomaly Detection
elastic
Investigates, explains, troubleshoots and configures Elastic ML anomaly detection jobs in Kibana/Elasticsearch.

Kibana Alerting Rules
elastic
Create, inspect, update, and manage Kibana alerting rules through the elastic CLI, including lifecycle changes.
More in Data & Analytics

Audit Xls
anthropics
Audits spreadsheet formulas and financial models for errors, hardcodes, and integrity issues, then reports findings.

Comps Analysis
anthropics
Builds institutional-grade comparable company analyses as Excel spreadsheets with operating metrics, valuation multiples and statistics.

Audit Xls
anthropics
Audits spreadsheet formulas and financial models for errors, hardcodes, and integrity issues, then reports findings.

Audit Xls
anthropics
Audits spreadsheet formulas and financial models for errors, hardcodes, and integrity issues, then reports findings.

Comps Analysis
anthropics
Builds institutional-grade comparable company analyses as Excel spreadsheets with operating metrics, valuation multiples and statistics.

Audit Xls
anthropics
Audits spreadsheet formulas and financial models for errors, hardcodes, and integrity issues, then reports findings.