現在、Solr3.6でSuggesterに取り組んでいます。外部辞書ソースを提供してSuggesterを構成しました。
solrconfig.xml:
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">textSpell</str>
<lst name="spellchecker">
<str name="name">suggest</str>
<str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
<str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
<float name="threshold">0.005</float>
<str name="buildOnCommit">true</str>
<bool name="exactMatchFirst">true</bool>
<str name="sourceLocation">D:\source.txt</str>
</lst>
</searchComponent>
Source.txt:
nokia 2
nokia 5233 3
nokia 5130 2
Symbian 1
samsung 6712 2
htc 2
HTC Wild 6
htc one 7
Nokia 1280 5
「n」で検索しようとすると、以下の結果が表示されます
nokia 5233
nokia 5130
nokia
ただし、結果は「Nokia1280」には含まれていません。
理由は何でしょうか?Suggesterで大文字と小文字を区別する方法を無視するにはどうすればよいですか?