Solr 云对集合的分布式搜索 [英] Solr cloud distributed search on collections

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

问题描述

目前我有一个 zookeeper 实例控制 3 台物理服务器上的复制.它是solr集成的zookeeper.1 个分片,1 个集合.

Currently I have a zookeeper instance controlling replication on 3 physical servers. It is the solr integrated zookeeper. 1 shard, 1 collection.

我有一个新需求,我需要一个新的静态 solr 实例(1 个新集合,无复制).与之前的集合相同的架构.此实例的副本也将放置在上述 3 台物理服务器上.需要注意的是,我需要在 2 个集合中执行分布式搜索并混合结果.

I have a new requirement in which I will need a new static solr instance (1 new collection, no replication). Same schema as previous collection. A copy of this instance will also be placed on the 3 physical servers mentioned above. A caveat is that I need to perform distributed searches across the 2 collections and have the results blended.

感谢 javacreed 我现在知道分片不在我的解决方案中.以前的问题回答这里此处.

Thanks to javacreed I now know that sharding is not in my solution. Previous questions answers here and here.

在我当前的设置中,我在运行 zookeeper 的服务器上运行以下命令 -

In my current setup I run the following command on the server running zookeeper -

java -Dbootstrap_confdir=solr/myApp/conf -Dcollection.configName=myConfig -DzkRun -DnumShards=1 -jar start.jar

我说这不会改变是否正确,我现在也将手动启动非复制集合.我真的只需要更改我的搜索查询以包含 'collection' 参数吗?像 -

Am I correct in saying that this will not change and I will now also manually start the non replicated collection. I really only need to change my search queries to include the 'collection' parameter? Something like -

http://localhost:8983/solr/collection1/select?collection=collection1,collection2

这个例子来自 Solr 文档.我有点困惑它是否应该是 ...solr/collection1/select?... 还是 ...solr/collection2/select?... 或者它是否重要?

This example is from Solr documentation. I am slightly confused as to whether it should be ...solr/collection1/select?... or ...solr/collection2/select?... or if it even matters?

谢谢

推荐答案

感谢斯图尔特的美言.你可以直接在 solr 上搜索

Thanks for your kind word stewart.You can search it directly on solr as

http://localhost:8983/solr/select?collection=collection1,collection2

无需提及任何集合路径,因为您是在集合参数中定义它们.

There is no need to mention any collection path since you are defining them in the collection parameters.

这篇关于Solr 云对集合的分布式搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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