Re: Multi Core indexed using SolrJ
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, dhaivat wrote: Hello all I have gone through the tutorials of Solrj. now i want to create multi core indexes through solrj but i am not getting clue , so can anybody post some example code ? Regards Dhaivat -- View this message in context: http://lucene.472066.n3.nabble.com/Multi-Core-indexed-using-SolrJ-tp3496830p3496830.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Multi Core indexed using SolrJ
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 Nabble.com.
Re: Multi Core indexed using SolrJ
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 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 Nabble.com.