http://it.chinawin.net/softwaredev/article-c2bb.html
命令格式:http://[host]:[port]/solr/[core]/replication?command=[command name]
1。details:显示当前实例Replication详细信息,包括:indexSize、indexPath、commits(indexVersion、generation、filelist)、isMaster、isSlave、indexVersion、generation,对于Slave还要显示包括上述内容的Master其详细信息和masterUrl、pollInterval、nextExecutionAt、indexReplicatedAt、indexReplicatedAtList、replicationFailedAtList、timesIndexReplicated、lastCycleBytesDownloaded、timesFailed、replicationFailedAt、previousCycleTimeInSeconds、isPollingDisabled、isReplicating。
2。backup:备份。
3。fetchindex:获取索引,此命令在Slave上执行。
4。abortfetch:忽略获取索引,此命令在Slave上执行。
5。filelist:获取指定版本的索引文件信息,需要指定索引版本。如:command=filelist& indexversion=[indexVersion]。将返回文件的name、lastmodified、size信息。
6。filecontent:获取文件内容。
6。filechecksum:检测文件。
7。disablepoll:取消轮询,此命令在Slave上执行。
8。disablereplication:取消复制。
9。enablereplication:开启复制。
10。enablepoll:开启轮询,此命令在Slave上执行。
11。indexversion:查询当前索引版本。
12。commits:返回当前索引信息。
--------------------------------------------------------------------------------------------------------------------------------------------------------
http://blog.csdn.net/babydavic/article/details/8755057
可以通过以下 HTTP 命令来控制
ReplicationHandler 的操作
http://master_host:port/solr/replication?command=enablereplication 使主服务器的复制可用
http://master_host:port/solr/replication?command=disablereplication 使主服务器的复制不可用
http://host:port/solr/replication?command=indexversion 获得主服务器或从服务器最新的索引版本
http://slave_host:port/solr/replication?command=fetchindex 强制从服务器从主服务器拉取索引,该过程可以传递 下的参数,如主服务的url、压缩参数等
http://slave_host:port/solr/replication?command=abortfetch 让某从服务器不再从主服务器拉取索引
http://slave_host:port/solr/replication?command=enablepoll 使某从服务器可以从主服务器拉取修改的索引
http://slave_host:port/solr/replication?command=details 返回配置和当前状态
http://host:port/solr/replication?command=filelist&indexversion= 返回指定主机的索引文件列表,可以指定版本号
http://master_host:port/solr/replication?command=backup 如果有新的commit,将备份索引库,该命令在阶段备份索引时很有用