Hello guys,

Since I upgrade from 4.1.0 to 4.4.0 version I've noticed that
EmbeddedSolrServer has changed a little the way of construction:

*Solr 4.1.0 style:*

CoreContainer coreContainer = new CoreContainer(*solrHome, new
File(solrHome+"/solr.xml"*));
EmbeddedSolrServer localSolrServer = new EmbeddedSolrServer(coreContainer,
core);

*Solr 4.4.0 new style:
*

CoreContainer coreContainer = new CoreContainer(*solrHome*);
EmbeddedSolrServer localSolrServer = new EmbeddedSolrServer(coreContainer,
core);


However, it's not working. I've got the following solr.xml configuration
file:

*<cores adminPath="/admin/cores" defaultCoreName="core" host="${host:}"
hostPort="${jetty.port:8983}" hostContext="${hostContext:solr}"
zkClientTimeout="${zkClientTimeout:15000}">
*
*    <core name="core" instanceDir="core" />*
*  </cores>  *
*</solr>*


And resources appears to be loaded correctly:

*2013-07-31 09:46:37,583 47889 [main] INFO  org.apache.solr.core.ConfigSolr
 - Loading container configuration from /opt/solr/solr.xml*


But when indexing into core with coreName 'core', it throws an Exception:

*2013-07-31 09:50:49,409 5189 [main] ERROR
com.buguroo.solr.index.WriteIndex  - No such core: core*

Or I am sleppy, something that's possible, or there is some kind of bug
here.

Best regards,

-- 
- Luis Cappa

Reply via email to