[英]Elastic search split data based on condition
I have created a es index to store millions of rows. 我创建了一个es索引来存储数百万行。 The application is likely to grow to store more number of rows.
该应用程序可能会增长以存储更多行。
Is there a way to shrad the index based on a particular condition. 有没有一种方法可以根据特定条件扩展索引。
ie; 即 I want to store data in a different node based on a particular condition.
我想根据特定条件将数据存储在其他节点中。
To actually "answer" the question, see here for information on the sharding algorithm 要实际“回答”问题,请参阅此处以获取有关分片算法的信息
https://www.elastic.co/guide/en/elasticsearch/guide/current/routing-value.html https://www.elastic.co/guide/zh-CN/elasticsearch/guide/current/routing-value.html
And how to change the routing 以及如何更改路由
https://www.elastic.co/guide/en/elasticsearch/reference/2.1/mapping-routing-field.html https://www.elastic.co/guide/zh-CN/elasticsearch/reference/2.1/mapping-routing-field.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.