代码之家  ›  专栏  ›  技术社区  ›  jai dutt

何时使用集合与碎片?[已关闭]

  •  0
  • jai dutt  · 技术社区  · 8 年前

    我对碎片和收集有点困惑。我们可以创建一个索引,一个新的表到新的碎片,并且可以像集合一样完成。

    何时制作新碎片以及何时制作新集合。

    1 回复  |  直到 8 年前
        1
  •  1
  •   root    8 年前

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

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

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

    何时使用集合?

    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/