Article Directory
![Insert picture description here](https://img-blog.csdnimg.cn/20201002212159602.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzIxMzgzNDM1,size_16,color_FFFFFF,t_70#pic_center)
1. Data routing (routing)
What does it mean to route document to shard?
Data routing (routing): The data of an index will be divided into multiple pieces, and each piece is in a shard; therefore, a document can only exist in one shard. When creating a document, es needs to determine which shard to place the document on the index. This process is called document routing (data routing).
2. Routing Algorithm
shard = hash