elasticsearch

Design Elasticsearch and OpenSearch index mappings, queries, and indexing patterns.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill elasticsearch-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elasticsearch
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skill-library/stack/search/elasticsearch
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill elasticsearch-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for designing, querying, and optimizing Elasticsearch and OpenSearch, enabling powerful search and analytics capabilities.

Core Features & Use Cases

  • Index Design: Define optimal mappings, analyzers, and sharding strategies.
  • Query DSL: Construct complex queries for full-text search, aggregations, and autocomplete.
  • Indexing Patterns: Efficiently index data using Bulk API and manage data lifecycle with ILM.
  • Use Case: Integrate advanced search functionality into an e-commerce platform, allowing users to find products with relevant, fast, and faceted results.

Quick Start

Use the elasticsearch skill to create an index mapping for product data including title, description, and price fields.

Frequently Asked Questions about elasticsearch

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

FAQPage Schema
How do I design an Elasticsearch index mapping for product data?

Design an Elasticsearch index mapping by defining field structures, applying custom analyzers for full-text search, and configuring sharding strategies to ensure efficient query performance. This approach supports relevant and faceted e-commerce search results.

How do I write advanced query DSL for full-text search and aggregations?

Write advanced query DSL by constructing complex queries that combine full-text search criteria with aggregations to group and analyze data. This structure enables robust search features and allows you to extract meaningful metrics from indexed documents.

What is the best way to efficiently index data using the Elasticsearch Bulk API?

The best way to efficiently index data is using the Bulk API to batch multiple operations into a single request, paired with Index Lifecycle Management to automate data retention and rollover policies for your indices.

Does this guidance for Elasticsearch also apply to OpenSearch?

Yes, this guidance explicitly covers OpenSearch alongside Elasticsearch, addressing shared challenges in index design, query DSL, and efficient indexing patterns. This allows you to apply advanced search and log analytics techniques across both platforms.

How do I build an autocomplete system with Elasticsearch?

Build an autocomplete system by utilizing specific query DSL structures designed for fast prefix matching and completion suggestions, which requires configuring appropriate analyzers in your index mappings to deliver instant search feedback.