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