Yeah, it was sometime back - it did work. Thanks for following up.
On Tue, May 19, 2009 at 12:34 AM, RaghavPrabhu <raghavprabh...@gmail.com> wrote: > > Hi Vivek, > > Have you figure out the problem of creating the data dir in wrong > location? > > For me its working... > > Just comment the data dir (in solrconfig.xml file) and create the core > via REST call. It should work!!! > > Thanks & regards > Prabhu.K > > > > vivek sar wrote: >> >> Hi, >> >> I tried the latest nightly build (04-01-09) - it takes the dataDir >> property now, but it's creating the Data dir at the wrong location. >> For ex., I've the following in solr.xml, >> >> <solr persistent="true"> >> <cores adminPath="/admin/cores"> >> <core name="core0" instanceDir="/Users/opal/temp/chat/solr" >> dataDir="/Users/opal/temp/afterchat/solr/data/core0"/> >> </cores> >> </solr> >> >> but, it always seem to be creating the solr/data directory in the cwd >> (where I started the Tomcat from). Here is the log from Catalina.out, >> >> Apr 1, 2009 10:47:21 AM org.apache.solr.core.SolrCore <init> >> INFO: [core2] Opening new SolrCore at /Users/opal/temp/chat/solr/, >> dataDir=./solr/data/ >> .. >> Apr 1, 2009 10:47:21 AM org.apache.solr.core.SolrCore initIndex >> WARNING: [core2] Solr index directory './solr/data/index' doesn't >> exist. Creating new index... >> >> I've also tried relative paths, but to no avail. >> >> Is this a bug? >> >> Thanks, >> -vivek >> >> On Wed, Apr 1, 2009 at 9:45 AM, vivek sar <vivex...@gmail.com> wrote: >>> Thanks Shalin. >>> >>> Is it available in the latest nightly build? >>> >>> Is there any other way I can create cores dynamically (using CREATE >>> service) which will use the same schema.xml and solrconfig.xml, but >>> write to different data directories? >>> >>> Thanks, >>> -vivek >>> >>> On Wed, Apr 1, 2009 at 1:55 AM, Shalin Shekhar Mangar >>> <shalinman...@gmail.com> wrote: >>>> On Wed, Apr 1, 2009 at 1:48 PM, vivek sar <vivex...@gmail.com> wrote: >>>>> I'm using the latest released one - Solr 1.3. The wiki says passing >>>>> dataDir to CREATE action (web service) should work, but that doesn't >>>>> seem to be working. >>>>> >>>> >>>> That is a Solr 1.4 feature (not released yet). >>>> >>>> -- >>>> Regards, >>>> Shalin Shekhar Mangar. >>>> >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Defining-DataDir-in-Multi-Core-tp22818543p23611179.html > Sent from the Solr - User mailing list archive at Nabble.com. > >