: According to solr wiki, an instruction to use single war file and : multiple context files (solr[1-2].xml). ... : I wonder why following structure is not enough. I think this is : the simplest way (disk space is a bit more necessary, of course):
...there's nothing stoping you from actually cloning the entire webapp, but there is also no good reason for it. you still have to to use something like JNDI to configure the individual webapp instances to know what solr home dir to use. : I noticed this caution on the wiki page: : : > Don't put anything related to Solr under the webapps directory. : : Can someone tell me why "don't put anything related to solr under : the webapps"? Is this the reason why single war file configuration : is recommended ? Because tomcat does bad things if you have both a webapps/foo/ (or a webapps/foo.ar) and a context file named "foo.xml". i don't remember what exactly the problem is, but they are intended to be mutually exclusive -- ie: either you use the context file and point to the war outside of the webapps dir, or you use the webapps dir -- not both. -Hoss