Hi,

SolrJ 6.6.5 used org.apache.http.impl.client.SystemDefaultHttpClient under the hood, which took system properties for HTTP proxy config into account (http.proxyHost and http.proxyPort).

The deprecated SystemDefaultHttpClient class was replaced as part of SOLR-4509. And with Solr 7.5.0 I'm now unable to use an HTTP proxy with SolrJ at all (not using Solr Cloud here). SolrJ 7.5 uses org.apache.http.impl.client.HttpClientBuilder#create to create an HttpClient, but it does not call #useSystemProperties on the builder. Because of that, the proxy configuration from system properties is ignored.

Is there some other way to configure an HTTP proxy, e.g. with HttpSolrClient.Builder? I don't want to create an Apache HttpClient instance myself but the builder from Solrj (HttpSolrClient.Builder).

Thanks in advance,
Andreas

Reply via email to