1.安装2个solr,2份tomcat,端口一个为8080,一个为9080
2.最方便的配置是在url里增加distribution搜索:[color=red]&shards=localhost:8080/solr,localhost:9080/solr[/color]
完全URL为:
2.最方便的配置是在url里增加distribution搜索:[color=red]&shards=localhost:8080/solr,localhost:9080/solr[/color]
完全URL为:
http://localhost:9080/solr/select/?q=AllField%3A%E5%B0%8F%E8%AF%B4&version=2.2&start=0&rows=10&indent=on&shards=localhost:8080/solr,localhost:9080/solr
本文介绍了一种通过简单配置实现Solr集群的方法。通过在URL中增加distribution参数,即可实现跨多个Solr实例的搜索。具体操作为设置shards参数指向各Solr实例地址。

被折叠的 条评论
为什么被折叠?



