: The ability to read solr configuration files from the classpath instead of
: solr.solr.home directory.

Solr has always supported this.  

When SolrResourceLoader.openResourceLoader is asked to open a resource it 
first checks if it's an absolute path -- if it's not then it checks 
relative the "conf" dir (under whatever the instanceDir is, ie: Solr Home 
in a single core setup), then it checks relative the current working dir 
and if it still can't find it it checks via the current ClassLoader.

that said: it's not something that a lot of people have ever taken 
advantage of, so it wouldn't suprise me if some features in Solr are 
buggy because they try to open files directly w/o utilizing 
openResourceLoader -- in particular a quick test of the trunk example 
using...
java -Djetty.class.path="./solr/conf" -Dsolr.solr.home=/tmp/new-solr-home -jar 
start.jar

...seems to suggest that QueryElevationComponent isn't using openResource 
to look for elevate.xml  (i set solr.solr.home in that line so solr would 
*NOT* attempt to look at "./solr" ... it does need some sort of Solr Home, 
but in this case it was a completley empty directory)


-Hoss

Reply via email to