Basic configuration – solrcore.properties
The file “solrcore.properties” defines the basic connection configuration for each Solr core. In the following sections a simple master/slave architecture is assumed, with the whole index being distributed to different master cores, with each master being backed by one slave. The configuration template looks as follows:
## This properties file configures a solr core in a master slave environment. # This is the directory in which Solr holds the distributed index of the core: dataDir=./data # This is the url of the Solr servlet: solrUrl=http://localhost:8983/solr # These are all shared slaves separeted by ',' # This shard list includes the slave for the current core. # Attention this property looks like a list of urls, but it is a list # of parts of urls. Do not the mistake to prefix it with http:// shards=localhost:8983/solr/slave0,localhost:8983/solr/slave1 # Based on the assummption that each master/slave pair is charaterised by # the same number, this number is set here as the coreNumber. coreNumber=0 # set this property to true if the core works as master master.enable=true # set this property to true if the core works as slave slave.enable=false # enable this property to use language specific stemming lang.detection.enable=true # use this setting for language specific stemming # this have only a influence # if the property lang.detection.enable is set to true lang.detection.language=de,en,fr,es
The properties in the beginning sections are used by master and slave cores. These properties are the same for each core. Only the properties “coreNumber”, “master.enable” and “slave.enable” must be set for each core separately. The coreNumber is the numerical part of the name of the core. For example the core ‘master0’ has the core number 0. This core corresponds to the core slave0, which has also the core number 0.
Each core must either be set to work as a master or as a slave. So, depending on this architecture role of the core the corresponding property master.enable or slave.enable is set to true.
The properties ‘lang.detection.enable’ and ‘lang.detection.language’ have an influence on the full-text configuration of the Integration Service (see chapter ImageMaster full-text settings).