gpt4 book ai didi

Solr 集合与核心

转载 作者:行者123 更新时间:2023-12-03 06:57:06 24 4
gpt4 key购买 nike

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

我有以下场景。我为多家在线商店创建了云服务后端。每个商店都有一组产品,顾客可以在其中添加评论。我想将静态数据(产品信息)与动态信息(评论)分开编制索引,以便提高性能。

如何在 Solr 中最好地分离???

最佳答案

来自SolrCloud Documentation

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: 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: Encapsulates a single physical index. One or more make up logical shards (or slices) which make up a collection.

Node: A single instance of Solr. A single Solr instance can have multiple SolrCores that can be part of any number of collections.

Cluster: All of the nodes you are using to host SolrCores.

所以基本上一个集合(逻辑组)有多个核心(物理索引)。

另外,请检查discussion

关于Solr 集合与核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17044640/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com