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.
>>
>

Reply via email to