A few concepts about Elasticsearch:
1) in Elasticsearch, the document belongs to the type, and the type is indexed to index, which can be likened to the traditional relational database for ease of understanding:
Columns, Tables, DataBases, relational DB
Elasticsearch, Indices, Types,
In a elasticsearch cluster, you can include multiple index indices, each of which can contain multiple type types, each of which can contain multiple document documents, and each Document object contains multiple fields (field).
2) Shards, clusters, nodes, replication.
* Partition your documents into different containers or shards (shards), which can exist in one or more nodes.
* Distribute the shards evenly to each node, and load balance the index and search.
* Redundancy of each shard to prevent data loss due to hardware failure.
* Route requests from any node in the cluster to the node where the corresponding data resides
* Whether you are adding nodes or removing nodes, shards can be seamlessly scaled and migrated.
A node is equivalent to one of your elasticsearch instances, and the cluster (cluster) consists of one or more nodes that have the same cluster.name that work together to share data and load.
Elasticsearch Introduction to Learning 2