Lightlines
By elastic

elasticsearch-query-optimization

elastic832 installs

Fix slow Elasticsearch searches with evidence.

What it does

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.

How to use it

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

  • an index name or pattern
  • the slow Query DSL body

Uses

Latest review

What you need · 2

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.


Access · 1

This skill

Elasticsearch

Read

Reads Elasticsearch mappings and search profiles