何时使用集合与碎片?

时间:2016-11-11 18:21:38

标签: solr solrcloud

我在碎片和收藏中有点混乱。我们可以将索引设置为新分片的新表,并且可以与集合相同。

  

何时制作新的碎片以及何时制作新的碎片。

1 个答案:

答案 0 :(得分:1)

集合是SolrCloud集群中的完整逻辑索引。例如,您可能有三个不同的集合,称为用户,书籍,人员。

在逻辑级别上,整个索引称为集合。它可能分布在集群中的许多节点上。

碎片是整个集合的一部分。即一个集合由一个或多个分片组成。

  

何时使用收藏?

Generally, users will create multiple Collections to separate logical units of data that will not be intermingled, similar to a database in the relational world. Collections are generally isolated from one another and do not typically communicate with each other. Also each Collections will each have their own unique schema.xml to define the types for their index.

  

何时使用分片?

If you feel your index is too big to be stored on one node . it can be divided into different shards and can be stored on different nodes on a cluster.

在此处详细了解:https://thinkbiganalytics.com/solrcloud-terminology/