I've read the documentation about how you can configure a Solr core with a
properties file. Is there any way to specify a properties file that will
apply to all cores running on a server?

Here's my scenario. I have a solr setup where I have two cores, "foo" and
"bar". I want to enable replication using properties, as is suggested on
the wiki.

http://wiki.apache.org/solr/SolrReplication#enable.2BAC8-disable_master.2BAC8-slave_in_a_node

I would like my master/slave settings to apply to all cores on a box, but I
would still like to have separate solrcore.properties files so that other
properties can be set per core. In other words, I would like a setup like
this, with three files.

#solr.properties
# These properties should apply to all cores on a box
enable.master=true
enable.slave=false

#foo.solrcore.properties
# These properties only apply to core foo
filterCache.size=16384

#bar.solrcore.properties
# These properties only apply to core bar
filterCache.size=2048

What I'm trying to avoid is having to duplicate the global values across
all solrcore.properties files.

I've looked into having a .properties file that applies to the whole
context, but we are running Tomcat, which does not make this easy. It seems
the only way to do this with Tomcat is with the CATALINA_OPTS environment
variable, and I would rather duplicate values across solrcore.properties
files than use CATALINA_OPTS.

- Hayden

Reply via email to