Core Concepts and Architecture of Elasticsearch 📚
Elasticsearch’s architecture revolves around several key components:
- Cluster: A collection of node instances that work together.
- Node: An individual Elasticsearch server that stores data and participates in cluster operations.
- Index: A logical namespace for documents; similar to a database.
- Document: A JSON object representing a unit of searchable data.
- Shard and Replica: Indices are divided into shards for distributed storage. Replicas provide redundancy and load balancing.
Diagrammatically:
Cluster
├── Node 1 (Primary shard)
├── Node 2 (Replica shard)
├── Node 3 (Primary shard)
Understanding these concepts is crucial to leverage Elasticsearch’s full potential for scalable search solutions.