Hi all, Cores are not loaded to the CoreContainer. my solr.xml configuration is
<solr> > <solrcloud> > <str name="host">127.0.0.1</str> > <int name="hostPort">${jetty.port:8983}</int> > <str name="hostContext">${hostContext:solr}</str> > <int name="zkClientTimeout">${zkClientTimeout:30000}</int> > <str name="shareSchema">${shareSchema:false}</str> > <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool> > </solrcloud> > > <shardHandlerFactory name="shardHandlerFactory" > class="HttpShardHandlerFactory"> > <int name="socketTimeout">${socketTimeout:120000}</int> > <int name="connTimeout">${connTimeout:15000}</int> > </shardHandlerFactory> > </solr> > Please help. Thanks On Mon, Nov 24, 2014 at 11:35 AM, Danesh Kuruppu <dknkuru...@gmail.com> wrote: > Hi all, > > I am using solr version 4.7.2 > > I am getting following when communicating with solr server. > > org.apache.solr.common.SolrException: No such core: db >> at >> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:112) >> at >> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:118) >> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116) >> at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102) >> > > I am using EmbeddedSorlServer, It is initialized as follows > > CoreContainer coreContainer = new >> CoreContainer(solrHome.getPath()); >> coreContainer.load(); >> this.server = new EmbeddedSolrServer(coreContainer, "db"); >> > > in solr-home, there is a directory called db. in core.properties file, I > define the name and dataDir. > > Couldn't find the cause for this error. > > Please help. > > Thanks > Danesh >