It is very surpricing to see that there are only few means very few details about the replication of solr server. So i desided to give a simple howtos on solr replication .

Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, and a web administration interface.

We are now working on solr 1.4 for replication. There are two Solr server with same version. One will act as a master and the other one will act as a slave. Only five minutes is required to configure solr replication in 1.4 version.The configuratin is as follows

Master Configuration

You need to go to the First server and open the solrconfig.xml file, it can be located at

 apache -solr/example/solr/conf

Then search for replication and make the changes as given below.

Only this much you need to change on the master server. Now you can start the master server

Slave Configuration

Open the solrconfig file in slave system and make the changes shown below


In the master url, you specify your master server ip. Now just start your slave. The replication will start automatically. There is no additional configuraion required for this.

 To check the replication status,open the solr url in a browser.There you can see one link for replication ,Just click on that. In the master you will get the folllowing output:


On slave you can see the replication as below


Additinal configuraions

Replicating solrconfig.xml

In the configuration file on the master server, include a line like the following:

<str name="confFiles">solrconfig_slave.xml:solrconfig.xml,x.xml,y.xml</str>

This ensures that the local configuration ‘solrconfig_slave.xml’ will be saved as ‘solrconfig.xml’ on the slave. All other files will be saved with their original names.

Post By Editor (2,827 Posts)

Website: →