You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/03/08 15:32:01 UTC
[Solr Wiki] Update of "SolrReplication" by RasmusHahn
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrReplication" page has been changed by RasmusHahn.
The comment on this change is: api-command filecontent added.
http://wiki.apache.org/solr/SolrReplication?action=diff&rev1=70&rev2=71
--------------------------------------------------
* Get list of lucene files present in the index: http://host:port/solr/replication?command=filelist&indexversion=<index-version-number> . The version number can be obtained using the indexversion command
* Disable replication on master for all slaves: http://master_host:port/solr/replication?command=disablereplication
* Enable replication on master for all slaves: http://master_host:port/solr/replication?command=enablereplication
+ * Transfer a file from the master: http://master_host:port/solr/replication?command=filecontent&wt=filestream&indexversion=<index-version-number>
+ * index files use an additional parameter {{{file=<index-filename>}}}, configuration files use an additional parameter {{{cf=<config-filename>}}} instead.
+ * file contents are transferred in a custom stream format.
+
== enable/disable master/slave in a node ==
If a server needs to be turned into a master from a slave or if you wish to use the same solrconfig.xml for both master and slave, do as follows,