Thanks again, this should solve the current problem I am having. Nikhil
----- Original Message ---- From: Henrib <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Thursday, 28 August, 2008 7:42:11 PM Subject: Re: CoreDescriptor explanation and possible bug Nikhil Chhaochharia wrote: > > > I am assuming that these are part of some patch which will get applied > before 1.3 releases, is that correct ? > > Nikhil > > Yes, this is part of a patch and no, they most likely will not make it in 1.3. However, I guess the following will bring you even closer: public SolrCore nikhilInit(final IndexSchema indexSchema) { final String solrConfigFilename = "solrconfig.xml"; // or else CoreContainer.Initializer init = new CoreContainer.Initializer() { @Override public CoreContainer initialize() { CoreContainer container = new CoreContainer(new SolrResourceLoader(SolrResourceLoader.locateInstanceDir())); SolrConfig solrConfig = solrConfigFilename == null ? new SolrConfig() : new SolrConfig(solrConfigFilename); CoreDescriptor dcore = new CoreDescriptor(container, "", solrConfig.getResourceLoader().getInstanceDir()); dcore.setConfigName(solrConfig.getResourceName()); dcore.setSchemaName(indexSchema.getResourceName()); SolrCore core = new SolrCore( "", null, solrConfig, indexSchema, dcore); container.register("", core, false); return container; } }; return init.initialize().getCore(""); } -- View this message in context: http://www.nabble.com/CoreDescriptor-explanation-and-possible-bug-tp19197004p19201459.html Sent from the Solr - User mailing list archive at Nabble.com.