Solr 集合与核心 [英] Solr Collection vs Cores

查看:17
本文介绍了Solr 集合与核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难理解集合和核心之间的区别.如果我理解正确,核心是多个索引.集合由核心组成,因此本质上它们在分离上共享相同的逻辑,即不同的核心和集合具有不同的端点.

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 文档

集合:单个搜索索引.

Shard:单个集合的逻辑部分(也称为片).有时人们会在物理意义上谈论碎片"(逻辑分片的体现)

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)

副本:逻辑分片的物理表现,已实现作为 SolrCore 上的单个 Lucene 索引

Replica: A physical manifestation of a logical Shard, implemented as a single Lucene index on a SolrCore

Leader:每个 Shard 的一个 Replica 将被指定为 Leader该分片的坐标索引

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.

Node: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆