If the configuration directory for a Solr core contains a file named solrcore.properties that file can contain any arbitrary user defined property names and values using the Java standard , and those properties can be used as variables in the XML configuration files for that Solr core.
比如可以在其中定义
#solrcore.properties in master
enable.master=true
enable.slave=false
and in slave
#solrcore.properties in slave
enable.master=false
enable.slave=trueEach core has its own solrcore.properties that is located under the conf directory of each core's instance directory.