elasticsearch
Skill15 starsChanged 44 days agoMITView on GitHub
Expert Elasticsearch assistance covering full-text search, inverted indexes, mappings, aggregations, and cluster lifecycle. Use when building search engines, analyzing logs (ELK), or implementing autocomplete search.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- lawless-m/claude-skillstheir own version, first seen Nov 6, 2026
- Azure/sre-agent-pluginstheir own version, first seen Oct 13, 2026
- fworks-tech/agenthoodtheir own version, first seen Sep 28, 2026
- isYaoNoistu/claudecode-skillstheir own version, first seen Mar 9, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- lawless-m/claude-skills★ 6same name
- Azure/sre-agent-plugins★ 4same name
- fworks-tech/agenthood★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- isYaoNoistu/claudecode-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Problem: Search queries fail to return relevant results due to minor typos or lack of ranking priority.
- Very specific: line 83
Use multi_match queries with fuzziness and title field boosting (^3):
- Very specific: line 108
Use keyword Type for Exact Matching: Use keyword fields for filtering, sorting, and aggregations.
- Very specific: line 109
Place Filters Inside the filter Context: Filter clauses do not calculate BM25 relevancy scores and are cached automatically.
- Distinctive: line 115
Create too many small shards: Keep shard sizes between 20GB and 50GB.
- Very specific: line 116
Use wildcard queries with leading asterisks (*keyword): Leading wildcards force full inverted index scans.
- Distinctive: line 117
Use Elasticsearch as a primary system-of-record database: Replicate data from primary relational databases (PostgreSQL/MySQL).
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Elasticsearch
Elasticsearch is a distributed search and analytics engine built on Apache Lucene. It is the heart of the ELK Stack (Elastic, Logstash, Kibana) and a leading Vector Database for AI.
When to Use
- Enterprise Full-Text Search: Autocomplete, typo tolerance, synonyms, and relevancy ranking across millions of unstructured documents.
- Log Analytics & SIEM (ELK Stack): Ingesting, indexing, and visualizing server logs, metrics, and security audit trails.
- Dense Vector Semantic Search: Storing machine-learning embeddings and performing hybrid semantic + lexical search.
- Real-Time Analytical Aggregations: Computing multi-level nested aggregations, histograms, and geolocation bounding boxes.
Quick Start
# REST API - Search for "bike"
GET /products/_search
{
"query": {
"match": {
"description": "bike"
}
}
}Core Concepts
Inverted Index & Tokenization Pipeline
Analyzers split text into tokens, normalize casing, apply stemming, and build inverted term-to-document indexes:
"The quick brown fox" ──Analyzer──→ ['quick', 'brown', 'fox']
Inverted Index:
'brown' -> [Doc 1, Doc 4]
'fox' -> [Doc 1, Doc 2]Query DSL (Bool, Match, Multi-Match)
Constructs rich boolean relevancy queries:
POST /products/_search
{
"query": {
"bool": {
"must": [
{ "multi_match": { "query": "wireless noise cancelling", "fields": ["title^3", "description"] } }
],
"filter": [
{ "term": { "in_stock": true } },
{ "range": { "price": { "lte": 350.00 } } }
]
}
},
"aggs": {
"popular_brands": { "terms": { "field": "brand.keyword", "size": 5 } }
}
}Index Lifecycle Management (ILM) & Hot-Warm-Cold Tiers
Automates moving aging indices across storage tiers to reduce infrastructure costs:
[ Hot Tier (Fast NVMe SSDs) ] ──30 Days──→ [ Warm Tier (Standard SSD) ] ──90 Days──→ [ Cold Tier / S3 Snapshot ]Common Patterns
Multi-Match Search with Field Boosting and Fuzziness
Problem: Search queries fail to return relevant results due to minor typos or lack of ranking priority.
Solution:
Use multi_match queries with fuzziness and title field boosting (^3):
POST /products/_search
{
"query": {
"multi_match": {
"query": "wirless headphone",
"fields": ["title^3", "brand^2", "description"],
"fuzziness": "AUTO",
"prefix_length": 2
}
},
"aggs": {
"categories": {
"terms": { "field": "category.keyword" }
}
}
}Best Practices
Do:
- Use
keywordType for Exact Matching: Usekeywordfields for filtering, sorting, and aggregations; usetextfor full-text search. - Place Filters Inside the
filterContext: Filter clauses do not calculate BM25 relevancy scores and are cached automatically. - Implement Index Lifecycle Management (ILM): Rollover indices based on size (50GB) and age rather than arbitrary calendar dates.
- Tune
refresh_intervalDuring Bulk Ingestion: Increaserefresh_intervalto30sor-1when streaming bulk data to boost throughput.
Don't:
- Create too many small shards: Keep shard sizes between 20GB and 50GB; excessive small shards exhaust cluster heap memory.
- Use
wildcardqueries with leading asterisks (*keyword): Leading wildcards force full inverted index scans. - Use Elasticsearch as a primary system-of-record database: Replicate data from primary relational databases (PostgreSQL/MySQL).
Troubleshooting
| Error | Cause | Solution |
circuit_breaking_exception: [parent] Data too large | JVM heap exhaustion during large aggregation or unbounded wildcard query. | Increase cluster heap, reduce aggregation bucket sizes, or scale data nodes. |
Cluster status is RED | Primary shards unassigned due to node failure or storage exhaustion. | Check shard allocation explain API: GET /_cluster/allocation/explain. |
Fielddata is disabled on text fields | Attempting to aggregate or sort on a text field without keyword sub-field. | Update query to target fieldname.keyword. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

