From ace3e15d0de115b00d976bf82a2675cb78620439 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Mon, 23 Nov 2009 00:36:42 +0000 Subject: [PATCH] SOLR-1577: fix data dir default to stay under solr home git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@883202 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 6 ++++++ example/solr/conf/solrconfig.xml | 2 +- src/java/org/apache/solr/core/CoreDescriptor.java | 2 ++ src/java/org/apache/solr/core/SolrConfig.java | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index f6c8c069bd4..b9b490b51a9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -64,6 +64,12 @@ Bug Fixes * SOLR-1563: Binary fields, including trie-based numeric fields, caused null pointer exceptions in the luke request handler. (yonik) +* SOLR-1577: The example solrconfig.xml defaulted to a solr data dir + relative to the current working directory, even if a different solr home + was being used. The new behavior changes the default to a zero length + string, which is treated the same as if no dataDir had been specified, + hence the "data" directory under the solr home will be used. (yonik) + Other Changes ---------------------- diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml index a507339e1e9..fa1f8ca0430 100755 --- a/example/solr/conf/solrconfig.xml +++ b/example/solr/conf/solrconfig.xml @@ -68,7 +68,7 @@ - ${solr.data.dir:./solr/data} + ${solr.data.dir:}