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?

solr ui

url

enter image description here

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -