Alexandre Rafalovitch suggested this too ...
Couple of things:
- Should the distribution bundle include example/solr/solr.xml? Or should we just copy server/solr/solr.xml to example/solr in the script if it's not there already? I guess I prefer copying it over vs. maintaining another file in version control.
- I like the idea of putting the example logs under example/ too. Currently, the server/resources/log4j.properties file just uses the cwd of the Jetty server to determine the location of the log file, specifically, it does:
This translates to server/logs at runtime. What I'd like to do is change server/resources/log4j.properties to:
However, this will put logs under server/solr/logs instead of server/logs, which I actually like better since it allows you to reuse the server directory for multiple Solr nodes running on the same server with different solr.solr.homes, i.e. the following commands will result in two Solr nodes running on the same server, sharing the server directory but having different solr.solr.home directories:
bin/solr -p 8983 -s node1
bin/solr -p 8984 -s node2
If you do this now, then the log files will conflict with each other, so putting the logs directory under solr.solr.home will work better. If we don't think reusing the server directory is a big deal and want to keep server/logs, then I can also do: solr.log=$
/../logs/ which will keep logs in server/logs or example/logs. Sorry if this is a bit pedantic but I want to make sure we're all in agreement with these changes since we're getting close to the 5x release.