Re: solr.xml coreRootDirectory relative to solr home
: An oversight I think. If you create a patch, let me know and we can : get it committed. that definitely sounds bad we should certainly try to fix that before 5.0 comes out since it does have back-compat implictations... https://issues.apache.org/jira/browse/SOLR-6718 ...better to have a 5.0 release note about tweaking rel-paths when people expect more changes then a 5.x release note that might be easily overlooked. -Hoss http://www.lucidworks.com/
Re: solr.xml coreRootDirectory relative to solr home
On 11/6/2014 12:02 PM, Erick Erickson wrote: > An oversight I think. If you create a patch, let me know and we can > get it committed. > > Hmmm, not sure though, this'll change the current behavior that people might > be > counting on Relative to the solr home sounds like the best option to me. It's what I would expect, since most of the rest of Solr uses directories relative to other directories that may or may not be explicitly defined. I haven't researched in-depth, but I think that the solr home itself is the only thing in Solr that defaults to something relative to the current working directory ... and that seems like a very good policy to keep. Thanks, Shawn
Re: solr.xml coreRootDirectory relative to solr home
An oversight I think. If you create a patch, let me know and we can get it committed. Hmmm, not sure though, this'll change the current behavior that people might be counting on On Thu, Nov 6, 2014 at 1:02 AM, Andreas Hubold wrote: > Hi, > > I'm trying to configure a different core discovery root directory in > solr.xml with the coreRootDirectory setting as described in > https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml > > I'd like to just set it to a subdirectory of solr home (a "cores" directory > to avoid confusion with configsets and other directories). I tried > > cores > > but that's interpreted relative to the current working directory. Other > paths such as sharedLib are interpreted relative to Solr Home and I had > expected this here too. > > I do not set solr home via system property but via JNDI so I don't think I > can use a ${solr.home}/cores or something like that? It would be nice solr > home were available for property substitution even if set via JNDI. > > Is there another way to set a path relative to solr home here? > > Regards, > Andreas
solr.xml coreRootDirectory relative to solr home
Hi, I'm trying to configure a different core discovery root directory in solr.xml with the coreRootDirectory setting as described in https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml I'd like to just set it to a subdirectory of solr home (a "cores" directory to avoid confusion with configsets and other directories). I tried cores but that's interpreted relative to the current working directory. Other paths such as sharedLib are interpreted relative to Solr Home and I had expected this here too. I do not set solr home via system property but via JNDI so I don't think I can use a ${solr.home}/cores or something like that? It would be nice solr home were available for property substitution even if set via JNDI. Is there another way to set a path relative to solr home here? Regards, Andreas