0
我已經在舊版本Solr中的1個主節點和2個從節點上構建了具有schema.xml的2個核心。 master和slave都使用solrcore.properties來表示他們的角色。例如爲奴(注:大師,我只是扭轉真/假),它是:如何使用Solr中舊版本的schema.xml重建主從多核5.5
enable.master=false
enable.slave=true
#define master url
MASTER_CORE_URL=192.168.1.222:8983/corea_SE
POLL_TIME=00:00:60
和solrconfig.xml中,我定義角色的細節,如:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<!-- Use solrcore.properties to switch the role for node -->
<lst name="master">
<str name="enable">${enable.master:false}</str>
<str name="replicateAfter">startup</str>
<str name="replicateAfter">commit</str>
<str name="confFiles">schema.xml,stopwords.txt</str>
</lst>
<lst name="slave">
<str name="enable">${enable.slave:false}</str>
<str name="masterUrl">http://${MASTER_CORE_URL}/${solr.core.name}/replication</str>
<str name="pollInterval">${POLL_TIME}</str>
</lst>
</requestHandler>
我想在Solr 5.5中重建這個結構,但是在Solr 5.5下載包或Apache Solr Reference Guide中找不到這樣的例子或說明。 Solr 5.5甚至沒有schema.xml或主從的任何示例。我怎樣才能做到這一點?有沒有可以幫助我的文檔或網址?