Can anyone tell me how to configure Embedded Solr DIH in Solrj? I tried this..
SolrQuery qry = new SolrQuery();
qry.setQueryType("/import");
qry.setParam("command", "full-import");
qry.setParam("clean", false);
embeddedSolrServer.query(qry);
And it stops at this point.
1437 [main] INFO org.apache.solr.core.CoreContainer - registering core: main
1468 [Thread-1] INFO org.apache.solr.handler.dataimport.DataImporter - Starting Full Import
1468 [main] INFO org.apache.solr.core.SolrCore - [main] webapp=null path=/import params={qt=%2Fimport&command=full-import&clean=false} status=0 QTime=15
After this I expect to get something like this as in Solr HTTP Server :
Read import.properties
org.apache.solr.handler.dataimport.JdbcDataSource$1 call Creating a connection for entity id with URL: jdbc:mysql://localhost/solrdb
org.apache.solr.handler.dataimport.JdbcDataSource$1 call
And so on...
Thanks in advance :)
You can do it like this:
URL url = new URL(completeUrl);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
See how I did it here.