ieb/solr — Issue #81: Allow external configuration of the Embedded Solr server from known locations.
Author: ieb
Created: 2011-11-23 06:16:44+00:00
State: open

This only impacts the Embedded Solr server, but is of relevance for upstream projects.
At the moment there are 2 choices, make the config files available in the classpath or configure OSGi for solrconfig.xml and schema.xml

We need the following to happen.
1. If configured by OSGi, the OSGi locations are used
2. Known locations under sling home are checked sling/solrconfig.xml and sling/schema.xml
3. Known locations from previous startups are checked sling/solr/config/solrconfig.xml and sling/config/schema.xml
4. The classpath is checked, and if found the resources are copied to sling/solr/config/

Deployers can use 1
Upstream bundlers can use 2
3 and 4 ensure that the solr config is not inadvertently changed once startup has been done once.