Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

elasticsearch-index-design

Skill by elastic

Designs and reviews Elasticsearch index mappings based on how each field is searched, filtered, sorted or aggregated. It is for engineers creating new indices or fixing existing mappings.

  • Score 83
  • 615 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install elasticsearch-index-design

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elastic/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/elasticsearch/elasticsearch-index-design ~/.claude/skills/elasticsearch-index-design

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install elasticsearch-index-design in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an assistant design explicit Elasticsearch index mappings from stated access patterns. For each field it asks how the field is searched, filtered, aggregated, sorted or only retrieved, then picks the minimal field type. It recommends text with keyword multi-fields when a field needs both full-text search and sorting or aggregation, and it flags dynamic objects that risk mapping explosion. It also covers doc_values tuning, scaled_float for bounded metrics and explicit shard settings.

The skill runs its operations through the elastic CLI rather than direct HTTP calls. Because Elasticsearch cannot change a field's type in place, it explains how to create a corrected index and copy documents with a reindex, then verify counts and mappings. It targets Elasticsearch 8.x or 9.x users on self-managed, Elastic Cloud Hosted or Serverless deployments.

Written from the project's SKILL.md and checked against it.

What it can do

  • Access pattern reviewClassifies each field as search, exact, numeric metric, date, boolean, structured object or retrieve-only.
  • Field type selectionMaps each field to the minimal type set that fits its stated access pattern.
  • Multi-field designSets up text fields with keyword sub-fields when a field needs search and sort or aggregation.
  • Mapping explosion checksFlags dynamic objects with many distinct keys and recommends flattened fields.
  • Storage tuningSuggests doc_values false on display-only keyword fields and scaled_float for bounded metrics.
  • Reindex migration planLays out a new index, POST /_reindex copy, count and mapping checks, then cutover.

What you need

  • elastic CLI version 0.2 or later with stack es support
  • An Elasticsearch 8.x or 9.x cluster

Try asking

  • Review this Elasticsearch mapping for storage and query performance
  • Which field type should I use for a status field I only filter on?
  • Design an index mapping for product names that need search and sorting

Good to know

  • Elasticsearch cannot change an existing field's type in place, so fixes need a new index and reindex.
  • Shard and replica settings apply only to self-managed and Elastic Cloud Hosted deployments.
  • Access pattern data is required; the skill asks the user rather than guessing.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/elasticsearch/elasticsearch-index-design/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • references/field-type-decisions.md6 KB
  • references/mapping-explosion.md4 KB
  • references/multi-field-patterns.md3 KB

Alternatives to elasticsearch-index-design

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

elasticsearch-index-design: common questions

Can this skill change a live index mapping's field types?

No. The source says type changes require creating a new index and reindexing documents into it, then switching reads and writes over.

Which Elasticsearch deployments does it support?

The source lists Elasticsearch 8.x or 9.x on self-managed, Elastic Cloud Hosted or Elastic Cloud Serverless. Explicit shard settings apply only to self-managed and Elastic Cloud Hosted.

Does it call the Elasticsearch HTTP API directly?

No. The source says to use the elastic CLI for all operations and not call the HTTP API directly.

How do I install elasticsearch-index-design?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is elasticsearch-index-design free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is elasticsearch-index-design safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to elasticsearch-index-design?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

elasticsearch-index-design Install

Add to stack

Loading.