如何通过分片将嵌入式Solr彼此连接 [英] How to connect embedded solr with each other by sharding

查看:73
本文介绍了如何通过分片将嵌入式Solr彼此连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用具有多个基本Solr服务器的分片进行集群。我还使用了一个嵌入式solr服务器(Solrj Java API)和许多基本solr服务器,并通过分片连接它们,因为嵌入式solr服务器是它们的调用者。为此,我使用了下面的代码行。

I have been using sharding with multiple basic solr server for clustering. I also used one embedded solr server (Solrj Java API) with many basic solr servers and connecting them by sharding as embedded solr server is the caller of them. I used the code line below for this purpose.

SolrQuery query = new SolrQuery();
query.set("shards", "solr1URL,solr2URL,...");

现在,我有许多运行在不同计算机上的嵌入式solr服务器,它们彼此之间并不了解。
我想通过分片相互交流。可能吗?如果是,怎么办?如果不是,您还可以使用嵌入式Solr服务器建议哪些其他选项?

Now, I have many embedded solr servers running on different computers and they are unaware of each others. I want to communicate them with each other by sharding. Is it possible? if yes how? if not what are the other options that you can advice by using embedded solr servers?

推荐答案

在Jira中,该问题尚待解决。请参见此处

There is an open issue for that problem in Jira. See here.

这篇关于如何通过分片将嵌入式Solr彼此连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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