/major-ai-skills:elasticsearchfrom major-ai-skills
Design Elasticsearch mappings, aliases, and ILM; tune bulk ingest with backpressure; secure API auth; plan reindex cutovers and avoid mapping explosions, red shards, and restore index-name traps.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Elasticsearch is a distributed search and analytics engine: documents in indices (sharded, replicated), mappings define field types, queries use JSON DSL. Ingest is bulk-oriented; coordinators merge shard results. Mapping changes are mostly immutable—plan reindex + alias swap. OpenSearch shares many APIs; verify version-specific behavior.
Ingest (bulk / Beats / OTel)
-> coordinating node
-> primary/replica shards (Lucene segments)
-> merge / refresh / flush
-> ILM: hot -> warm -> cold -> delete
Visibility index (async) != transactional DB
Use when
Do not use when
@postgresql):9200 anonymously on the public internet; rotate keys; use least-privilege roles per index pattern.properties for prod fields; disable or limit dynamic mapping; use keyword for filter/sort/agg, text for search (multi-fields when both needed).logs-write / logs-read aliases; reindex to logs-v2, atomic alias flip—never delete old index until verified.429 and circuit_breaking_exception; watch thread pools and indexing pressure._id or external version for idempotent indexing; consumers of search results still see near-real-time delay (refresh_interval).PUT _index_template/products
{
"index_patterns": ["products-*"],
"template": {
"settings": { "number_of_shards": 1, "number_of_replicas": 1 },
"mappings": {
"dynamic": "strict",
"properties": {
"name": { "type": "text", "fields": { "keyword": { "type": "keyword" } } },
"price": { "type": "scaled_float", "scaling_factor": 100 },
"created_at": { "type": "date" }
}
}
}
}
POST _aliases
{
"actions": [
{ "add": { "index": "products-000001", "alias": "products-read" } },
{ "add": { "index": "products-000001", "alias": "products-write", "is_write_index": true } }
]
}
POST _reindex
{ "source": { "index": "products-000001" }, "dest": { "index": "products-000002" } }
POST _aliases
{
"actions": [
{ "remove": { "index": "products-000001", "alias": "products-write" } },
{ "add": { "index": "products-000002", "alias": "products-write", "is_write_index": true } },
{ "add": { "index": "products-000002", "alias": "products-read" } }
]
}
curl -s -H 'Content-Type: application/x-ndjson' -XPOST localhost:9200/_bulk \
--data-binary @bulk.ndjson
# On 429: reduce batch size, increase backoff, check disk watermarks
| Failure signature | Root cause | Diagnostic & fix |
|---|---|---|
| Cluster red | Primary shard missing | Shard allocation explain; restore snapshot |
| Cluster yellow | Unassigned replicas | Add nodes or reduce replica count |
circuit_breaking_exception | Heap / fielddata / agg size | Reduce agg size; docvalue_fields; scale heap |
| Mapping explosion | Dynamic mapping on high-cardinality keys | Strict mapping; reindex |
| Bulk 429 storm | Indexing pressure / disk watermark | Backoff; ILM rollover; free disk |
| Search misses new docs | Refresh interval | refresh=wait_for for tests only; accept NRT |
| Restore overwrote wrong index | Restored snapshot to live name | Restore to new index + re-alias |
_analyze before shipping multilingual search.@clickhouse).@opentelemetry — trace/log pipelines into Elastic stack@kafka — ingest buffer before indexing@nginx-hardening — TLS reverse proxy for Kibana/ESMANDATORY: Production mapping changes require reindex + alias plan. Never delete indices without confirming alias targets and retention. Bulk ingest must include backoff on 429. Do not disable security for convenience.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job