Awesome thanks. What about indexing in a different core then renaming it once its done?
Thanks Brendan On Jul 3, 2013, at 6:48 PM, Shawn Heisey <s...@elyograg.org> wrote: > On 7/3/2013 2:45 PM, Brendan Grainger wrote: >> I'm experimenting with indexing using the EmbeddedSolrServer. Just to be >> sure, as I understand it, I do not need a running instance of solr to use >> this, it literally is a running instance of solr. > > You are correct, EmbeddedSolrServer starts a complete copy of Solr. > >> Given the above, how safe is it to use an EmbeddedSolrServer for indexing >> an index that might be simultaneously used by a regular running instance of >> solr with clients communicating with it using the usual http interface? > > This is a bad idea. Due to the way that 3.x and earlier work, you might > be able to get away with it if you have an old version, but bad things > can happen. > > Version 4.x and later will try to obtain a write lock as soon as they > start, making it very hard to use the same index with more than one > instance of Solr. > > Thanks, > Shawn >