我們正在嘗試在SOLR中設置多語言拼寫檢查選項,並剛剛完成基本SOLR環境的設置。多語言SOLR拼寫檢查設置
我們正在使用一個字段「拼寫」來進行拼寫檢查。
<lst name="spellchecker">
<str name="name">default</str>
**<str name="field">spell</str>**
--Rest are not specified - solrdefaults to IndexBasedSpellChecker --
</lst>
有一個已經被索引和存儲。(語言檢測不是必需的時刻。)
現有的語言領域LANGUAGE_STRING是沒有辦法,我可以使用這個領域來構建附加的方式在導入/更新內容時下面的spell_ *字段?
<requestHandler name="/select" class="solr.SearchHandler" lazy="true">
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="spellcheck.dictionary">default</str>
**<str name="spellcheck.dictionary">spell_en</str>**
**<str name="spellcheck.dictionary">spell_de</str>**
<str name="spellcheck.count">1</str>
</lst>
<arr name="last-components">
<str>spellcheck</str>
</arr>
</requestHandler>
我打算使用與文檔語言領域語言分離的單核方法,因爲在http://pavelbogomolenko.github.io/multi-language-handling-in-solr.html