Yes - I commented out the <dataDir> element in solrconfig.xml and then got the expected behavior: the core used a data subdirectory in the core subdirectory.

It seems like the problem arises from using the solrconfig.xml that's distributed as example/solr/conf/solrconfig.xml

The solrconfig.xml's in example/multicore/ don't have the <dataDir> element.

-Mike

On 03/01/2011 08:24 PM, Chris Hostetter wrote:
:<!-- Used to specify an alternate directory to hold all index data
:        other than the default ./data under the Solr home.
:        If replication is in use, this should match the replication
: configuration
: . -->
:<dataDir>${solr.data.dir:./solr/data}</dataDir>

that directive says "use the solr.data.dir system property to pick a path,
if it is not set, use "./solr/data" (realtive the CWD)

if you want it to use the default, then you need to eliminate it
completley, or you need to change it to the empty string...

    <dataDir>${solr.data.dir:}</dataDir>

or...

    <dataDir></dataDir>


-Hoss

Reply via email to