Re: How do create dynamic core using SOLRJ
It is seems to be working fine . But i have few question abt indexing 1)i want do index to each customer as well as partner. 2 )how do i create index to each partner (30 customers) ? As of now i am index all customer using data-config.xml -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3950398.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How do create dynamic core using SOLRJ
you should replace the CoreAdminRequest by CoreAdminResponse --> CoreAdminResponse e = new CoreAdminRequest().createCore("name", "instanceDir", newSolrServer); -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944180.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How do create dynamic core using SOLRJ
You can also use CoreAdminRequest.Create e = new CoreAdminRequest().createCore(name, instanceDir, server, configFile, schemaFile); -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944166.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How do create dynamic core using SOLRJ
try with: CoreAdminRequest.Create e = new CoreAdminRequest().createCore(name, instanceDir, server); Regards --Jamel -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944163.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How do create dynamic core using SOLRJ
Thanks for response .i tried above ur l but i was getting error SEVERE: org.apache.solr.common.SolrException: Error executing default implementa tion of CREATE at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(Cor eAdminHandler.java:250) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(Core AdminHandler.java:111) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl erBase.java:131) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDis patchFilter.java:298) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte r.java:174) please let me know .how to create dynamic core using SOLRJ. -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944131.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: How do create dynamic core using SOLRJ
Hi, You can use a simple httpurlrequest to create a new core for each customer as following : http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data Regards Jamel ESSOUSSI -- View this message in context: http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3943604.html Sent from the Solr - User mailing list archive at Nabble.com.