在主服务中配置索引复制请求处理类

以下是个主从复制模式中的主服务的配置示例:

<requestHandler name="/replication" class="solr.ReplicationHandler" >
	<lst name="master">
		<!--在 'optimize(合并索引)'后进行同步,其他可选的值还有'commit', 'startup',该值可以填多个-->
		<str name="replicateAfter">optimize</str>
		<!--在 'optimize(合并索引)'后备份索引,其他可选的值还有'commit', 'startup',该值可以填多个-->
		<!-- <str name="backupAfter">optimize</str> -->
		<!--指定备份多少份文件,默认值为 MAX_VALUE-->
		<!-- <int name="numberToKeep">2</int> -->
		<!--指定需要同步的配置文件,多份文件以逗号分隔 -->
		<str name="confFiles">schema.xml,stopwords.txt,elevate.xml</str>
		<!--The default value of reservation is 10 secs. Normally , you should not need
		to specify this -->
		<str name="commitReserveDuration">00:00:10</str>
	</lst>
</requestHandler>

Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress · 闽ICP备18020075号