personamanagmentlayer avatar

Elasticsearch Expert

This covers the essentials of working with Elasticsearch, from index management and mapping design to complex boolean queries and aggregations. You get Python examples for bulk indexing, multi-match searches with field boosting, and common aggregation patterns like histograms and term buckets. The best practices section is solid, calling out things like using search_after instead of deep pagination and applying filters for exact matches. It's aimed at someone building search functionality or working with the ELK stack who needs quick reference material for queries and cluster operations. The anti-patterns list alone will save you from common performance mistakes.

skills.sh installs
203
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill elasticsearch-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Elasticsearch Expert

Expert guidance for Elasticsearch, search optimization, ELK stack, and distributed search systems.

Core Concepts

  • Full-text search and inverted indexes
  • Document-oriented storage
  • RESTful API
  • Distributed architecture with sharding
  • ELK stack (Elasticsearch, Logstash, Kibana)
  • Aggregations and analytics

Index Management

from elasticsearch import Elasticsearch

es = Elasticsearch(['http://localhost:9200'])

# Create index with mapping
mapping = {
    "mappings": {
        "properties": {
            "title": {"type": "text", "analyzer": "english"},
            "content": {"type": "text"},
            "author": {"type": "keyword"},
            "created_at": {"type": "date"},
            "views": {"type": "integer"}
        }
    }
}

es.indices.create(index='articles', body=mapping)

# Index document
doc = {
    "title": "Elasticsearch Guide",
    "content": "Complete guide to Elasticsearch",
    "author": "John Doe",
    "created_at": "2024-01-01",
    "views": 100
}

es.index(index='articles', id=1, body=doc)

# Bulk indexing
from elasticsearch.helpers import bulk

Sponsors

Details

Repository
github.com/personamanagmentlayer/pcl
Category
Databases
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99

Recommended

More Databases
1nice-wolf-studio avatarsupabase-storagenice-wolf-studio/claude-code-supabase-skillsManage file storage operations in Supabase Storage. Use for uploading, downloading, listing, and deleting files in buckets.196skills.sh installs
2dbjpanda avatarconvex-tenantsdbjpanda/convex-tenantsMulti-tenant organization and team management for Convex with @djpanda/convex-tenants and @djpanda/convex-authz. Use when (1) setting up or integrating multi-te192skills.sh installs
3akillness avatarlooker-studio-bigqueryakillness/oh-my-skillslooker studio bigquery179skills.sh installs
4akillness avatarfirebase-ai-logicakillness/oh-my-skillsfirebase ai logic168skills.sh installs
5akillness avatarfirebase-cliakillness/oh-my-skillsfirebase cli164skills.sh installs
6tomasonjo avatarneo4j-cypher-guidetomasonjo/blogsneo4j cypher guide155skills.sh installs