我应该使用哪个查找来在 solr Suggestor 组件中实现上下文过滤?
我正在尝试在 FuzzyLookupFactory 和 AnalyzingLookupFactory 中使用 contextFiler,但它向我抛出了以下错误:
原因:org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:来自http://localhost:8983/solr/categories的服务器错误:此建议器不支持上下文。
我的建议:
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">displaySuggester</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="field">autoComplete</str>
<str name="contextField">productCategory</str>
<str name="suggestAnalyzerFieldType">string</str>
<str name="buildOnStartup">false</str>
</lst>
</searchComponent>