elasticsearch
/elasticsearch
Wspiera pracę z Elasticsearch: wyszukiwanie pełnotekstowe, indeksy odwrócone, mapowania, agregacje i cykl życia klastra, przy silnikach wyszukiwania, analizie logów ELK i autouzupełnianiu.
- Autor
- G1Joshi ↗
- Repozytorium
- Agent-Skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wspiera pracę z Elasticsearch: wyszukiwanie pełnotekstowe, indeksy odwrócone, mapowania, agregacje i cykl życia klastra, przy silnikach wyszukiwania, analizie logów ELK i autouzupełnianiu.
Oryginalny opis (EN)
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.
Jak działa
- When to Use
- Quick Start
- Core Concepts
- Common Patterns
- Best Practices
- Troubleshooting
- References
Podgląd SKILL.md
---
name: elasticsearch
description: 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.
---
# 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
```bash
# 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:
```text
"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:
```json
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:
```text
[ 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`):
```json
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 `keyword` Type for Exact Matching: Use `keyword` fields for filtering, sorting, and aggregations; use `text` for full-text search.
- Place Filters Inside the `filter` Context: 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_interval` During Bulk Ingestion: Increase `refresh_interval` to `30s` or `-1` when 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 `wildcard` queries 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
- [Elasticsearch Guide](https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · G1Joshi/Agent-Skills | 100 | MIT |
| aniketshukla1/elasticsearch-mcp | 100 | MIT |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| lynricsy/hyperskills | 100 | MIT |
| NikiforovAll/claude-code-rules | 100 | Apache-2.0 |
| chrishuffman5/domain-expert | 95 | MIT |
| clawic/skills | 90 | MIT |
| dkbnull/hello-skill | 86 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki ce5067d522a9 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100elasticsearch-expert
Wspiera pracę z Elasticsearch, stosem ELK i wyszukiwaniem pełnotekstowym, w tym Logstash i Kibana. - 100elasticsearch-indexing-mappings
Projektuje indeksy wyszukiwania, tokenizery, własne analizatory i dynamiczne mapowania pól w Elasticsearch. - 100spring-data-elasticsearch
Wspiera Spring Data Elasticsearch do wyszukiwania pełnotekstowego i analityki: ElasticsearchOperations, repozytoria, agregacje i zarządzanie indeksami. - 100elasticsearch-search
Konfiguruje Elasticsearch do wyszukiwania pełnotekstowego: mapowania, własne analizatory, złożone zapytania, potoki agregacji, strojenie trafności i wydajność indeksów. - 100elasticsearch-search-aggregations
Pisze zapytania Elasticsearch z klauzulami boolowskimi, oceną BM25 i zagnieżdżonymi agregacjami. - 90data-search-engine
Projektuje i utrzymuje wyszukiwarkę w Elasticsearch lub OpenSearch: mapowania, zapytania, agregacje i routing shardów.