Description
See this discussion
https://lists.apache.org/thread.html/86d745383fb5975b57a42929df0c1734c686c3458b48b32caf7044f7@%3Cdev.lucene.apache.org%3E
Reproduce
$ bin/solr start $ curl localhost:8983/v2 <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 400 {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid request. collections can be accessed only in SolrCloud mode,code=400}</title> </head> <body><h2>HTTP ERROR 400</h2> <p>Problem accessing /solr/____v2. Reason: <pre> {metadata={error-class=org.apache.solr.common.SolrException,root-error-class=org.apache.solr.common.SolrException},msg=Invalid request. collections can be accessed only in SolrCloud mode,code=400}</pre></p> </body> </html>
It works in cloud mode
$ bin/solr start -c $ curl localhost:8983/v2 {"responseHeader":{"status":0,"QTime":29},"collections":[]}