db-elasticsearch

Generate Elasticsearch index mappings, queries, aggregations, analyzers, and cluster configurations.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill db-elasticsearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-elasticsearch
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/db-elasticsearch
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill db-elasticsearch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the creation and management of Elasticsearch (or OpenSearch) configurations, enabling efficient search, logging, and analytics.

Core Features & Use Cases

  • Index Mapping Design: Define explicit and optimized mappings for various data types.
  • Custom Analyzers: Create tailored analyzers for specific search needs like autocomplete or multilingual support.
  • Query DSL Generation: Write complex queries for full-text search, exact matching, and aggregations.
  • Use Case: You need to set up an Elasticsearch index for product data, including text search for descriptions, exact matching for categories, and aggregations for price ranges.

Quick Start

Use the db-elasticsearch skill to generate an index mapping for product data with fields for title, description, price, and category.

Frequently Asked Questions about db-elasticsearch

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

FAQPage Schema
How do I generate Elasticsearch index mappings for product data?

Elasticsearch index mappings for product data are generated by defining explicit field configurations for text search, exact matching, and aggregations. This supports optimized data types for titles, descriptions, prices, and categories.

How do I create custom analyzers for Elasticsearch full-text search?

Custom analyzers for Elasticsearch full-text search are created by tailoring analysis chains for specific needs like autocomplete or multilingual support. This ensures accurate text tokenization and search relevance across different client libraries.

What's the best way to write complex Elasticsearch Query DSL for aggregations?

Elasticsearch Query DSL for aggregations is best written by structuring complex queries that combine full-text search, exact matching, and aggregation logic. This enables precise data grouping like calculating price ranges across indexed documents.

Does this Elasticsearch configuration approach work with OpenSearch?

Elasticsearch configuration approaches are fully compatible with OpenSearch. The generated index mappings, queries, and cluster configurations support both platforms for full-text search, log analytics, and vector search use cases.

When should I use Elasticsearch vector search over full-text search?

Elasticsearch vector search is used for semantic similarity matching, while full-text search handles keyword relevance. Vector search is appropriate when querying unstructured data embeddings rather than matching exact text terms.

What are the best practices for Elasticsearch index lifecycle management?

Elasticsearch index lifecycle management best practices involve optimizing cluster configurations and adhering to performance optimization rules. This ensures efficient log analytics and search operations across different client library versions.