Basic Concepts¶
Cluster¶
CSS provides functions on a per cluster basis. A cluster represents an independent search service that consists of multiple nodes.
Index¶
An index stores Elasticsearch data. It is a logical space in which one or more shards are grouped.
Replica¶
A replica is a copy of the actual storage index in a shard. It can be understood as a backup of the shard. Replicas help prevent single point of failures (SPOFs). You can increase or decrease the number of replicas based on your service requirements.
Document¶
An entity for Elasticsearch storage. Equivalent to the row in the RDB, the document is the basic unit that can be indexed.
Document Type¶
Similar to a table in the RDB, type is used to distinguish between different data.
In versions earlier than Elasticsearch 7.x, each index can contain multiple document types. Elasticsearch defines a type for each document.
Elasticsearch 7.x and later versions only support documents of the .doc type.
Mapping¶
A mapping is used to restrict the type of a field and can be automatically created based on data. It is similar to the schema in the database.
Field¶
The field is the minimum unit of a document. It is similar to the column in the database.