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.

-vivek



2009/3/31 Noble Paul നോബിള്‍  नोब्ळ् <noble.p...@gmail.com>:
> which version of Solr are you using? if you are using one from trunk ,
> you can pass the dataDir as an extra parameter?
>
> On Wed, Apr 1, 2009 at 7:41 AM, vivek sar <vivex...@gmail.com> wrote:
>> Hi,
>>
>>  I'm trying to set up cores dynamically. I want to use the same
>> schema.xml and solrconfig.xml for all the created cores, so plan to
>> pass the same instance directory, but different dir directory. Here is
>> what I got in solr.xml by default (I didn't want define any core here,
>> but looks like we have to have at least one core defined before we
>> start the Solr).
>>
>> <solr persistent="true">
>>    <cores adminPath="/admin/cores">
>>      <core name="core0" instanceDir="."/>
>>    </cores>
>> </solr>
>>
>> Now I run the following URL in the browser (as described on wiki -
>> http://wiki.apache.org/solr/CoreAdmin),
>>
>> http://localhost:8080/solr/admin/cores?action=CREATE&name=20090331_1&instanceDir=/Users/opal/temp/chat/solr&dataDir=/Users/opal/temp/chat/solr/data/20090331_1
>>
>> I get a response,
>>
>> <str name="saved">/Users/opal/temp/chat/solr/solr.xml</str>
>>
>> Now when I check the solr.xml I see,
>>
>> <?xml version='1.0' encoding='UTF-8'?><solr persistent='true'>
>> <cores adminPath='/admin/cores'>
>>  <core name='core0' instanceDir='./'/>
>>  <core name='20090331_2' instanceDir='/Users/opal/temp/afterchat/solr/'/>
>> </cores>
>> </solr>
>>
>> Note, there is NO dir directory specified. When I check the status
>> (http://localhost:8080/solr/admin/cores?action=STATUS) I see,
>>
>> <str name="name">core0</str>
>> <str name="instanceDir">/Users/opal/temp/afterchat/solr/./</str>
>> <str name="dataDir">/Users/opal/temp/afterchat/solr/./data/</str>
>> ...
>>
>> <str name="name">20090331_2</str>
>> <str name="instanceDir">/Users/opal/temp/afterchat/solr/</str>
>> <str name="dataDir">/Users/opal/temp/afterchat/solr/data/</str>
>>
>> both cores are pointing to the same data directory. My question is how
>> can I create cores on fly and have them point to different data
>> directories so each core write index in different location?
>>
>> Thanks,
>> -vivek
>>
>
>
>
> --
> --Noble Paul
>

Reply via email to