lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Bolser <dbol...@ebi.ac.uk>
Subject Configure Solr to use http proxy for querying shards?
Date Wed, 02 Oct 2013 11:32:47 GMT
Hi,

I'm running my Solr server on a box which can only see 'the web' via
an http proxy. For most applications it's as simple as setting
http_proxy in the shell environment to get them to see the 'the web'.
However, this isn't working for Solr.

The reason this is an issue is because my Solr server is configured to
perform a sharded query across multiple sites on the web, i.e. I have
this in my solrconfig.xml:

  <requestHandler name="pinkPony" class="solr.SearchHandler"
default="true" startup="lazy">
    <lst name="defaults">
      ...
      <!-- Add our shard servers... -->
      <str name="shards">site.out.there/solr/core,etc.like.this/solr/core</str>
      <!-- Print a summary of results per shard -->
      <str name="shards.info">true</str>
      ....

When I try to run a query against my server running on this box, I get
the following errors:
"error":"org.apache.http.conn.HttpHostConnectException: Connection to
http://sites.out.there refused",
      "trace":"...


Can I get Solr to use the http proxy, or am I stuck?


Cheers,
Dan.

Mime
View raw message