lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Setting Solr data dir isn't really working (6.3.0)
Date Fri, 24 Feb 2017 16:30:02 GMT
On 2/23/2017 6:41 PM, Walter Underwood wrote:
> I did this in the solrconfig.xml for both collections (tutors and questions). 
>   <dataDir>/solr/data</dataDir>
> I deleted the old collection indexes, reloaded, restarted, and created a new collection
for “tutors". And I see this on the disk.

Setting dataDir in solrconfig.xml, especially to an absolute path like
that, is generally not a good idea.  It's VERY bad if that config will
be used by multiple cores.  The best place to do it is in, so it's part of the core definition and independent of
config/schema.  IMHO it's best to make it a relative path.  Below is a file from my dev system running 6.3.0, in a
"cores/sparkinc_0" directory under the solr home.

I do not see anything broken in the directory listings you provided. 
What do you see that is misplaced?

With SolrCloud, I wouldn't be setting dataDir *at all* -- I would let
Solr handle that, mostly because the config for SolrCloud is not on the
disk and therefore dataDir doesn't need to be separated from instanceDir.

#Written by CorePropertiesLocator
#Mon Feb 06 19:24:18 UTC 2017


View raw message