So I have a simple class that builds a SolrQuery and sets the "shards" param. 
I have a really long list of shards, over 250.  My search seems to work
until I get my shard list up to a certain length. As soon as I add one more
shard I get:

org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.SocketException) caught when processing
request: Connection reset by peer: socket write error
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request

My class just looks like this:
public static void main(String[] args) {
try {
SolrServer s = new CommonsHttpSolrServer("http://mynode:8080/solr";);
SolrQuery q = new SolrQuery();
q.setQuery("test");
q.setHighlight(true);
q.setRows(50);
q.setStart(0);
q.setParam("shards", "node1:1010/solr/core01,node1:1010/solr/core02,...");
} catch (Exception e) {
e.printStackTrace();
}

If I execute the same request in a browser it returns fine.

One other question I had was even if I set the version to 2.2 the response
has version=1.  Is that normal?  In a browser it returns version=2.2 though.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Long-list-of-shards-breaks-solrj-query-tp2748556p2748556.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to