Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
After some more debugging, I think putting the dataDir in the Map of properties is actually working, but still running into a couple of issues with the setup... I created an example project that demonstrates the scenario:

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
Yea I'll try to put something together and report back. On Mon, Oct 3, 2016 at 6:54 PM, Alan Woodward wrote: > Ah, I see what you mean. Putting the dataDir property into the Map > certainly ought to work - can you write a test case that shows what’s > happening? > > Alan

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Alan Woodward
Ah, I see what you mean. Putting the dataDir property into the Map certainly ought to work - can you write a test case that shows what’s happening? Alan Woodward www.flax.co.uk > On 3 Oct 2016, at 23:50, Bryan Bende wrote: > > Alan, > > Thanks for the response. I will

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
Alan, Thanks for the response. I will double-check, but I believe that is going to put the data directory for the core under coreHome/coreName. What I am trying to setup (and did a poor job of explaining) is something like the following... - Solr home in src/test/resources/solr - Core home in

Re: EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Alan Woodward
This should work: SolrCore solrCore = coreContainer.create(coreName, Paths.get(coreHome).resolve(coreName), Collections.emptyMap()); Alan Woodward www.flax.co.uk > On 3 Oct 2016, at 18:41, Bryan Bende wrote: > > Curious if anyone knows how to create an

EmbeddedSolrServer and Core dataDir in Solr 6.x

2016-10-03 Thread Bryan Bende
Curious if anyone knows how to create an EmbeddedSolrServer in Solr 6.x, with a core where the dataDir is located somewhere outside of where the config is located. I'd like to do this without system properties, and all through Java code. In Solr 5.x I was able to do this with the following code: