java - SOLR: No cores available -
trying connect local solr server 5.4.0 via java
public class test { public static void main(string[] args) throws solrserverexception, ioexception{ // arraylist<string> sellers = util.readfile("sellersbp.csv", true); solrclient solr = new httpsolrclient("http://localhost:8983/solr/#/techproducts/"); queryresponse resp = solr.query("techproducts",new solrquery("*:*")); } }
however error message bunch of html tags , in says. exception in thread "main" org.apache.solr.client.solrj.impl.httpsolrclient$remotesolrexception: error server @ http://localhost:8983/solr/#/techproducts: expected mime type application/octet-stream got text/html.
no cores available go , create 1
this odd because using sample solr example , created core in ui called techproducts. advice?
url
the url http://localhost:8983/solr/#/techproducts/
has local anchor (everything behind #
) present, available browser (it's never sent server). used javascript in admin ui retrieve information correct core.
the actual url used access core http://localhost:8983/solr/techproducts/
Comments
Post a Comment