1

根据Solr 文档,您可以使用以下语法为分布式搜索添加“shards”参数:

主机:端口/base_url [,主机:端口/base_url]

我如何告诉 Solr 使用 https:// ?

4

1 回答 1

3

So the answer is located in solrconfig.xml of your core:

<shardHandlerFactory class="HttpShardHandlerFactory">
    <str name="urlScheme">https://</str>
</shardHandlerFactory>

When you defining shards in your query

e.g. &shards=192.168.0.1:8983/solr/core,192.168.0.2:8983/solr/core

the shardHandlerFactory will prefix each server with specified value

in our case https://192.168.0.1:8983/solr/core and https://192.168.0.2:8983/solr/core .

于 2014-05-08T12:00:58.687 回答