Solr runs on Https - SolrJ communication problem

I run Solr in the Https port (8443) on top of tomcat, How can I access this solr using the solrj client, I see that only CommonsHttpSolrServer is available,

Please suggest some way to access the allowed https solr port using SolrJ ?.

+5
source share
1 answer

Solrj internally uses the Apache Http Client . When used, CommonsHttpSolrServerit will create one and use it if you do not provide it.

, SSL, SSL- HttpClient CommonsHttpSolrServer. API, HttpClient.

CommonsHttpSolrServer(String solrServerUrl, HttpClient sslHttpClient, ...

, SSL- http SSL.

.

+5

All Articles