elasticsearch

Provide expert guidance on Elasticsearch cluster architecture, query DSL, and mapping design.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/bacoco/openfang-fork --skill elasticsearch-bacoco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elasticsearch
Source: https://github.com/bacoco/openfang-fork/tree/main/crates/openfang-skills/bundled/elasticsearch
Command: npx skills add https://github.com/bacoco/openfang-fork --skill elasticsearch-bacoco

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for managing and optimizing Elasticsearch clusters, enabling efficient search, log analytics, and data platform development.

Core Features & Use Cases

  • Querying and Aggregations: Craft complex queries and build powerful data aggregations.
  • Index Management: Design mappings, manage lifecycle policies, and perform reindexing.
  • Cluster Operations: Monitor health, diagnose allocation issues, and tune performance.
  • Use Case: Optimize a large Elasticsearch index containing user activity logs to enable fast, real-time dashboarding and reporting on user behavior.

Quick Start

Use the elasticsearch skill to create a new index named 'logs-2024' with a daily rollover policy.

Frequently Asked Questions about elasticsearch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design Elasticsearch mappings and manage index rollover policies?

Elasticsearch mapping design requires defining explicit field types and using index aliases for safe reindexing. You can manage index lifecycles by creating daily rollover policies to automate index transitions and maintain cluster health.

What is the recommended shard sizing for Elasticsearch cluster optimization?

Elasticsearch shard sizing should be between 10-50 GB per shard for optimal performance. Continuous cluster health monitoring is required to diagnose allocation issues, tune performance, and ensure efficient search and analytics operations.

How do I build complex queries and data aggregations in Elasticsearch?

Elasticsearch query DSL enables crafting complex queries and building powerful data aggregations. You use the query DSL to filter and analyze documents, supporting use cases like real-time dashboarding for user activity logs.

Can I use Elasticsearch for log analytics pipelines and time-series data platforms?

Elasticsearch supports building search experiences, log analytics pipelines, and time-series data platforms. It enables fast, real-time dashboarding and reporting on user behavior by indexing large volumes of user activity logs.

Why does Elasticsearch require explicit mapping design instead of dynamic mapping?

Elasticsearch requires explicit mapping design and understanding of field types to prevent data type conflicts and optimize search performance. Explicit mappings ensure structured data ingestion for accurate query DSL operations and efficient aggregations.

What is the best way to reindex Elasticsearch data without downtime?

The best way to reindex Elasticsearch data without downtime is using index aliases. You point the alias to a new index with updated mappings, reindex the data, and switch the alias, ensuring continuous search availability.