According to Solr documentation you can add "shards" parameter for distributed search in the following syntax:
host:port/base_url[,host:port/base_url]
How can I tell Solr to use https:// ?
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
eg &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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.