Elasticsearch
Elasticsearch
Elasticsearch
What is Elasticsearch?
1. Elasticsearch is a free and open sourced inverted index created by Shay Banon
2. First public release happened on 2010
3. It was developed in Java, so inherently cross-platform
4. Used by:
a. LinkedIn
b. Netflix
c. Facebook
d. Ebay
e. GitHub and many more...
Why Elasticsearch?
1. Easy to scale
2. Everything is one JSON call away [RESTful API]
3. Minimizes the chance of data loss
4. Multi-tenancy
5. Document oriented
6. Schema free
7. Widely used, so a bigger community
Fundamentals
Cluster:
1. A cluster consists of one or more nodes which share the same cluster name.
2. Each cluster has a single master node which is automatically chosen by the cluster
3. The current master node can be replaced if it fails.
Node:
Index:
Document:
Field:
Shard:
Replica shard: