Dismaxクエリパーサーを使用してsolr 4.5でインデックス付きデータからフリーテキスト検索結果を取得しようとしていますが、次のような単純なクエリでは結果が返されず、エラーもありません。
http://localhost:9999/solr/products/select?q=cuir&qf=text_fr&defType=dismax
そして、これらのドキュメントはインデックスに存在します:
{ id: 1, label: "Sac à main en cuir" }
{ id: 2, label: "Sac à main en cuir rouge" }
私のschema.xmlは次のとおりです。
..
<field name="id" type="int" indexed="true" stored="true" required="true" />
<field name="label" type="string" indexed="true" stored="true" required="true" />
...
<copyField source="label" dest="label_fr"/>
<dynamicField name="*_fr" type="text_fr" indexed="true" stored="false" />
...
<fieldType name="text_fr" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_french.txt" enablePositionIncrements="true" />
<filter class="solr.SnowballPorterFilterFactory" language="French"/>
<filter class="solr.CollationKeyFilterFactory" language="fr" strength="primary" />
</analyzer>
</fieldType>
およびsolrconfig.xmlで
...
<requestHandler name="/select" class="solr.SearchHandler">
<lst name="defaults">
<str name="echoParams">explicit</str>
<int name="rows">10</int>
<str name="defType">dismax</str>
</lst>
...
何が間違っているのでしょうか?なぜ結果が出ないのですか?