On Mon, Nov 23, 2009 at 11:49 PM, Chris Harris <rygu...@gmail.com> wrote:
> Are there any use cases for CREATE where the instance directory > *doesn't* yet exist? I ask because I've noticed that Solr will create > an instance directory for me sometimes with the CREATE command. In > particular, if I run something like > > http://solrhost/solr/admin/cores?action=CREATE&name=newcore&instanceDir=d > :\dir_that_does_not_exist\&config=C:\dir_that_does_exist\solrconfig.xml&schema=C:\dir_that_does_exist\schema.xml > > then Solr will create > > d:\dir_that_does_not_exist > > and > > d:\dir_that_does_not_exist\data > > I guess when you try to add documents and an IndexWriter is opened, the data directory is created if it does not exist. Since it calls File#mkdirs, all parent directories are also created. I don't think Solr creates those directories by itself. -- Regards, Shalin Shekhar Mangar.