Hi all,

While doing an upgrade from Solr 8.11.2 to 9.2.1 I bumped into an issue with 
proxy configuration for SolrJ and though I dug deep into the code I'd like to 
make sure I didn't miss something obvious.

It's about defining a proxy host for SolrJ requests. It seems like HTTP/2-based 
Solr clients (Http2SolrClient etc) cannot be configured to use a proxy. For 
HTTP/1 clients this was recently solved via SOLR-12848. But environment 
variables "http.proxyHost" etc are not applied by Jetty clients which are used 
for HTTP/2 communication. Configuration of the Jetty client through 
org.eclipse.jetty.client.HttpClient#getProxyConfiguration() is not possible, 
either, since Http2SolrClient#getHttpClient() is package-protected.

Do you know of any way around this? Or is it a gap in the Solr API (for which 
I'd create a Jira ticket then)?

Thanks!
Stefan

Reply via email to