Hi list. I am using the EmbeddedSolrServer to embed solr in my application, however I have run into a snag.
The only filesystem dependency that I want is the index itself. The current implementation of the SolrResource seems to suggest that i need a filesystem dependency to keep my configuration in. I manged to work around this using the code below, but it feels kind of wrong. SolrConfig config = new SolrConfig(null, null, getClass().getResourceAsStream(SOLR_CONFIG)); IndexSchema schema = new IndexSchema(config, null, getClass().getResourceAsStream(SOLR_SCHEMA)); CoreContainer coreContainer = new CoreContainer(); SolrCore core = new SolrCore("EMS", indexPath.getAbsolutePath(), config, schema, new CoreDescriptor(coreContainer, "EMS", SOLR_BASE)); coreContainer.register("EMS", core, false); SolrServer solrServer = new EmbeddedSolrServer(coreContainer, "EMS"); Is there a recommended way of embedding the solr server? Thanks - Erlend