我将solr建议程序lookupImpl用作AnalysisInfixLookupFactory,它工作正常,我无法解决的唯一问题是我希望在顶部显示准确的搜索关键字。
。即,如果I1`q搜索“皮革袋”,则该特定关键字应显示在顶部,但在其后显示“皮革袋”时显示“男装皮革”,“女士皮革袋”。
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">AnalyzingInfixLookupFactory</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="field">search_keyword</str>
<str name="suggestAnalyzerFieldType">text_general</str>
<str name="buildOnStartup">false</str>
</lst>
</searchComponent>
please help