Elasticsearch

Execute Elasticsearch 5.2 HTTP operations for search, bulk, scroll, and alias management.

6|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/lawless-m/claude-skills --skill elasticsearch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Elasticsearch
Source: https://github.com/lawless-m/claude-skills/tree/main/Elasticsearch
Command: npx skills add https://github.com/lawless-m/claude-skills --skill elasticsearch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Newtonsoft.Json, and includes references (resource) components.

What problem does it solves? This Skill provides robust, proven patterns for interacting with Elasticsearch 5.2 via its HTTP API, bypassing client library complexities and ensuring compatibility. It automates critical tasks like large-scale data ingestion, zero-downtime index updates, and efficient data retrieval, saving developers significant time and reducing operational risks.

Core Features & Use Cases

  • Zero-Downtime Index Updates: Implement atomic alias switching with timestamped indices for seamless updates without service interruption.
  • Efficient Large Data Downloads: Utilize the Scroll API to download millions of documents in batches, preventing memory exhaustion.
  • Bulk Indexing & Querying: Perform high-throughput bulk data operations and execute complex JSON queries with range filters.
  • Use Case: Manage a critical product catalog in Elasticsearch, ensuring that daily price updates are applied without any downtime, and enabling efficient extraction of the entire catalog for analytics or backups.

Quick Start

Use the Elasticsearch skill to download all documents from the 'products' index using the Scroll API.

Frequently Asked Questions about Elasticsearch

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

FAQPage Schema
How do I download large datasets from Elasticsearch without running out of memory?

Use the Scroll API to retrieve millions of documents in batches. The Scroll API maintains a cursor across your index, allowing you to fetch data in manageable chunks without loading everything into memory at once, preventing exhaustion during large-scale extractions.

How can I update Elasticsearch indices without downtime?

Implement zero-downtime updates by creating timestamped indices and switching aliases atomically. Write new data to a timestamped index, then flip the alias to point to it—your application reads the alias transparently, so updates complete without service interruption.

Can I interact with Elasticsearch 5.2 directly over HTTP without a client library?

Yes. This Skill provides direct HTTP API operations using HttpClient with REST JSON queries, bypassing client library complexities while maintaining full control over requests, parsing, and error handling for Elasticsearch 5.2 interactions.

What's the best way to perform high-throughput bulk indexing into Elasticsearch?

Use bulk indexing to index multiple documents in a single HTTP request, dramatically reducing overhead. This Skill demonstrates batching patterns and JSON formatting required to achieve high-throughput data ingestion efficiently.

How do I manage multiple Elasticsearch indices with zero-downtime switching?

Elasticsearch aliases enable atomic switching between indices. Create a new timestamped index, populate it, then update the alias in one operation. Applications reading through the alias experience no interruption during the switch.

Does this work with .NET applications that need fine-grained control over Elasticsearch requests?

Yes. This Skill is designed for .NET workflows requiring fine-grained control—it uses HttpClient directly with dynamic JSON result parsing, robust error handling, and scroll context lifecycle management without abstracting away request details.