Solr集合与核心 [英] Solr Collection vs Cores
问题描述
我努力理解馆藏与核心之间的区别.如果我正确理解的话,核心就是多个索引.集合由核心组成,因此本质上它们在分离方面共享相同的逻辑,即,单独的核心和集合具有单独的端点.
I struggle with understanding the difference between collections and cores. If I understand it correctly, cores are multiple indexes. Collection consists of cores, so essentially they share the same logic in separation, i.e. separate cores and collections have separate end-points.
我有以下情况.我为多个在线商店创建了一个云服务后端.每个商店都有一套产品,客户可以在其中添加评论.我想将静态数据(产品信息)与动态信息(评论)分开索引,以便提高性能.
I have the following scenario. I create a backend for cloud service for several online shops. Each shop has a set of products, to which customers can add reviews. I want to index static data (product information) separately from dynamic information(reviews) so I can improve performance.
如何最好地在Solr中分开?
How can I best separate in Solr???
推荐答案
来自 SolrCloud文档
集合:单个搜索索引.
Collection: A single search index.
碎片:单个集合的逻辑部分(也称为 片).有时人们会在物理上谈论碎片" (逻辑分片的体现)
Shard: A logical section of a single collection (also called Slice). Sometimes people will talk about "Shard" in a physical sense (a manifestation of a logical shard)
Replica:逻辑碎片的物理表现形式,已实现 作为SolrCore上的单个Lucene索引
Replica: A physical manifestation of a logical Shard, implemented as a single Lucene index on a SolrCore
领导者:每个碎片中的一个副本将被指定为领导者 该分片的坐标索引
Leader: One Replica of every Shard will be designated as a Leader to coordinate indexing for that Shard
SolrCore:封装单个物理索引.一个或多个化妆 构成集合的逻辑碎片(或片).
SolrCore: Encapsulates a single physical index. One or more make up logical shards (or slices) which make up a collection.
节点:Solr的单个实例.一个Solr实例可以具有 多个SolrCore,它们可以是任意数量的集合的一部分.
Node: A single instance of Solr. A single Solr instance can have multiple SolrCores that can be part of any number of collections.
集群:您用于托管SolrCores的所有节点.
Cluster: All of the nodes you are using to host SolrCores.
因此,基本上,一个集合(逻辑组)具有多个核心(物理索引).
So basically a Collection (Logical group) has multiple cores (physical indexes).
此外,请检查讨论
这篇关于Solr集合与核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!