Solr Cloud对集合进行分布式搜索 [英] Solr cloud distributed search on collections

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

问题描述

当前,我有一个Zookeeper实例来控制3台物理服务器上的复制.它是Solr集成的动物园管理员.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台物理服务器上.需要注意的是,我需要在两个集合之间执行分布式搜索,并将结果混合在一起.

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?

谢谢

推荐答案

感谢您的亲切字Stewart.您可以在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 Cloud对集合进行分布式搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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