Hi,

I am having troubles getting data from a particular shard, even though I
follow the documentation:

https://cwiki.apache.org/confluence/display/solr/Distributed+Requests

This is OK:

 curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true";
{
   // returns correct result set
}

But this is NOT OK when I specify a particular shard:

curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&shards=54.93.121.54:8986/solr
"

{
  "responseHeader":{
    "status":404,
    "QTime":5,
    "params":{
      "q":"*:*",
      "shards":"54.93.121.54:8986/solr",
      "indent":"true",
      "rows":"1000",
      "wt":"json"}},
  "error":{
    "msg":"Error from server at http://54.93.121.54:8986/solr: Expected
mime type application/octet-stream but got text/html. <html>\n<head>\n<meta
http-equiv=\"Content-Type\" content=\"text/html;
charset=UTF-8\"/>\n<title>Error 404 Not
Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem accessing
/solr/select. Reason:\n<pre>    Not Found</pre></p><hr><i><small>Powered by
Jetty://</small></i><hr/>\n\n</body>\n</html>\n",
    "code":404}}

Any idea?

Thanks,
Andrej

Reply via email to