Back to Agent Skills
Data & Analytics
Elasticsearch Search Engine
Build powerful full-text search, analytics, and log aggregation with Elasticsearch and the Node.js client.
Claude Code Cursor Copilot
Overview
Elasticsearch is a distributed search and analytics engine built on Apache Lucene. It provides near-real-time full-text search with support for complex queries, aggregations, relevance scoring, and geospatial search. The @elastic/elasticsearch Node.js client provides a fully typed API that maps directly to the Elasticsearch REST API.
The search engine excels at text analysis with built-in analyzers for tokenization, stemming, stopword removal, and synonym matching. Custom analyzers can be configured per field for language-specific requirements. Queries support boolean logic, phrase matching, fuzzy matching, wildcards, and boosting. The suggest API provides autocomplete, spell correction, and "did you mean" functionality.
Beyond search, Elasticsearch is widely used for log aggregation (ELK stack), metrics analytics, and security analytics. Aggregations provide real-time analytics capabilities including terms, date histograms, percentiles, geohash grids, and pipeline aggregations. The Kibana visualization layer connects directly to Elasticsearch for dashboards and exploration. Elasticsearch can be self-hosted or used as a managed service through Elastic Cloud.
The search engine excels at text analysis with built-in analyzers for tokenization, stemming, stopword removal, and synonym matching. Custom analyzers can be configured per field for language-specific requirements. Queries support boolean logic, phrase matching, fuzzy matching, wildcards, and boosting. The suggest API provides autocomplete, spell correction, and "did you mean" functionality.
Beyond search, Elasticsearch is widely used for log aggregation (ELK stack), metrics analytics, and security analytics. Aggregations provide real-time analytics capabilities including terms, date histograms, percentiles, geohash grids, and pipeline aggregations. The Kibana visualization layer connects directly to Elasticsearch for dashboards and exploration. Elasticsearch can be self-hosted or used as a managed service through Elastic Cloud.
Who Is This For?
- Build full-text product search with faceted filtering
- Implement autocomplete with search suggestions
- Aggregate application logs for monitoring and debugging
- Create analytics dashboards with real-time aggregations
Installation
Setup for Claude Code
npm install @elastic/elasticsearch Configuration
import { Client } from "@elastic/elasticsearch"
const client = new Client({
node: process.env.ELASTICSEARCH_URL,
auth: { apiKey: process.env.ELASTICSEARCH_API_KEY! },
})
// Search with highlights
const result = await client.search({
index: "products",
query: {
multi_match: {
query: "wireless headphones",
fields: ["name^3", "description", "category"],
fuzziness: "AUTO",
},
},
highlight: { fields: { name: {}, description: {} } },
}) Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Skills
Data & Analytics
Sentry Error Tracking
Monitor errors and performance issues in production with Sentry. AI agents can triage alerts and suggest fixes based on stack traces.
Claude Code Cursor Copilot
Data & Analytics PostHog Product Analytics
Track product usage, manage feature flags, and analyze user behavior with PostHog, an open-source product analytics platform.
Claude Code Cursor
Data & Analytics Database Query Builder
Generate and optimize SQL queries with AI assistance. Build complex queries, analyze execution plans, and improve database performance.
Claude Code Codex Copilot