can't you use JNDI?
check the "Multiple Solr Webapps" under each of the config docs:
http://wiki.apache.org/solr/SolrInstall#head-81dba7a28315ed9d2d76c49c162e3ad380827dbd
Ravish Bhagdev wrote:
But how do I maintain multiple copies of solr on same machine. For
instance if I have two webapps using two independent solr indexes?
Thanks,
R
On Dec 14, 2007 11:04 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: Recently, I had to set up a Jetty with multiple Solr homes (not multi-core).
I used JNDI with Jetty 6.1.6 to get this going.
: Then Matt Kangas' note from July 2007 caught my attention:
...
: <!-- NOTE: If Solr looked at something like this: -->
: <!-- NOTE: getServletContext().getInitParameter("solr.home"); -->
: <!-- NOTE: we could do the following w/o mucking with JNDI -->
...
: Is there a reason why this was not done?
because context params can *only* be set from the web.xml of the war ...
which isn't something we want to encourage people to do (or suggest that
they need to do) since it makes it extremely difficult to upgrade later.
-Hoss