I'm currently using Solr 1.4 with its built-in solr.ReplicationHandler
enabled in solrconfig.xml for a master and slave as follows:

  <requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
      <str name="enable">${enable.master:false}</str>
      <str name="replicateAfter">commit</str>
      <str name="replicateAfter">startup</str>
      <str
name="confFiles">schema.xml,protwords.txt,spellings.txt,stopwords.txt,synonyms.txt</str>
    </lst>
    <lst name="slave">
      <str name="enable">${enable.slave:false}</str>
      <str
name="masterUrl">http://searchhost:8983/solr/items/replication</str>
      <str name="pollInterval">00:00:60</str>
    </lst>
  </requestHandler>

Everything in the index is replicated perfectly except that my spellcheck
directories are not being replicated.  Here is my spellcheck config in
solrconfig.xml:

  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
    <str name="queryAnalyzerFieldType">textSpell</str>
    <lst name="spellchecker">
      <str name="name">default</str>
      <str name="field">spell</str>
      <str name="spellcheckIndexDir">./spellchecker1</str>
      <str name="buildOnCommit">false</str>

    </lst>
    <lst name="spellchecker">
      <str name="name">jarowinkler</str>
      <str name="field">spell</str>
      <!-- Use a different Distance Measure -->
      <str
name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
      <str name="spellcheckIndexDir">./spellchecker2</str>
      <str name="buildOnCommit">false</str>

    </lst>

    <lst name="spellchecker">
      <str name="classname">solr.FileBasedSpellChecker</str>
      <str name="name">file</str>
      <str name="sourceLocation">spellings.txt</str>
      <str name="characterEncoding">UTF-8</str>
      <str name="spellcheckIndexDir">./spellcheckerFile</str>
      <str name="buildOnCommit">false</str>
    </lst>
  </searchComponent>

I have set the buildOnCommit to 'false', but instead have a separate cron to
build my spellcheck dictionaries on a nightly basis.  

Is there a way to tell Solr to also replicate the spellcheck files too?  Is
my setting 'buildOnCommit' to 'false' causing my spellcheck files to not
replicate?  I would think after the nightly build is triggered and done (via
cron) that the spellcheck files would be replicated by that is not the case.

Thanks for any help or info.

Michael

-- 
View this message in context: 
http://old.nabble.com/How-to-get-Solr-1.4-to-replicate-spellcheck-directories-as-well--tp26812569p26812569.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to