0
我是solr的新用戶,並且嘗試爲我的網站添加新建議功能。 我已經使用AnalyzingInfixLookupFactory在solrconfig.The suggetion建議添加建議功能工作正常,但結果在我的網站就要像Solr Suggest AnalyzingInfixLookupFactory
nestle <b>MILO</b> Activ
,但它應該像
"nestle MILO Activ" without the "<b>" "</b>"
如何我可以在solr上設置這個嗎?
這裏是我的solrconfig
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggest</str>
<str name="lookupImpl">AnalyzingInfixLookupFactory</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="field">goodsName</str>
<str name="weightField">popularity</str>
<str name="suggestAnalyzerFieldType">text_en</str>
<str name="buildOnStartup">true</str>
</lst>
</searchComponent>
<requestHandler name="/suggest" class="solr.SearchHandler"
>
<lst name="defaults">
<str name="suggest.dictionary">mySuggest</str>
<str name="suggest">true</str>
<str name="suggest.count">10</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>