You should create HttpSolrServer that works with a core. One
CommonsHttpSolrServer per core.
java snippet: final CommonsHttpSolrServer solrServer = new
CommonsHttpSolrServer(http://localhost:8080/solr; + /myCoreName);
The rest remains unchanged.
Thanks, Ivan
On Thu, 2011-11-10 at 16:25 +0200,
Thanks Ivan,
Is there any specific method using which i can create core and add documents
in it ?
Regards
Dhaivat
--
View this message in context:
http://lucene.472066.n3.nabble.com/Multi-Core-indexed-using-SolrJ-tp3496830p3496869.html
Sent from the Solr - User mailing list archive at
To create a core please take a look at
org.apache.solr.client.solrj.request.CoreAdminRequest.
To index documents try:
SolrServer#add(CollectionSolrInputDocument);
SolrServer#commit();
On Thu, 2011-11-10 at 16:39 +0200, dhaivat wrote:
Thanks Ivan,
Is there any specific method using which i