: > The only filesystem dependency that I want is the index itself.

should we assume you're baking your solrconfig.xml and schema.xml  
directly into a jar?

: > The current implementation of the SolrResource seems to suggest that i need
: > a filesystem dependency to keep my configuration in.

I'm not sure what you mean by "SolrResource" ... there's no hard 
dependency on having any configs on disk that i know of (anymore)

: > I manged to work around this using the code below, but it feels kind of
: > wrong.

what feels wrong about it?  you need to provide a Stream to read the 
SolrConfig and IndexSchema from, and you're doing that.  it seems fine to 
me (but i'm not a big Embeeded guy so the experts might have more insight 
into a simpler way to do this...

: >         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");


-Hoss

Reply via email to