It turns out that the documentation is not correct. If I specify the
collection name after shards=, it does work as expected. So this works:
curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr/connects
"

This does not work:
curl "
http://54.93.121.54:8986/solr/connects/select?q=*%3A*&wt=json&indent=true&rows=1000&shards=54.93.121.54:8986/solr
"

So I guess the documentation needs an update?

Cheers,
Andrej


On Thu, Dec 17, 2015 at 10:36 AM, Markus Jelsma <markus.jel...@openindex.io>
wrote:

> Hi - looks like Solr did not start up correctly, got some errors and kept
> Jetty running. You should find information in that node's logs.
> M.
>
>
> -----Original message-----
> > From:Andrej van der Zee <andrejvander...@gmail.com>
> > Sent: Thursday 17th December 2015 10:32
> > To: solr-user@lucene.apache.org
> > Subject: Expected mime type application/octet-stream but got text/html
> >
> > 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