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:
https://github.com/bbende/solrcore-datdir-test/blob/master/src/test/java/org
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 Woodward
> www.flax.co.
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 double-check, but I be
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 sr
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 in Solr 6.
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: