Solr Auto Suggester 中的上下文过滤不起作用

Context filtering in Solr Auto Suggester is not working

我正在使用 Solr 6.3 版本,我正在尝试实现自动建议器,我需要在其中应用上下文过滤器。我已将 'AnalyzingInfixLookupFactory' 用于 lookupImplementation,将 'DocumentDictionaryFactory' 用于 dictionaryImpl,并将过滤器应用于文档类型 'Product'。但是,它对我不起作用。

这是相同的示例代码:

<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">productName</str>
      <str name="contextField">documentType</str>
      <str name="weightField"></str>
      <str name="suggestAnalyzerFieldType">lowercase</str>
      <int name="maxEdits">2</int>
      <str name="buildOnStartup">false</str>
    </lst>
</searchComponent>

请求处理程序:

<requestHandler name="/suggest" class="solr.SearchHandler"
              startup="lazy" >
    <lst name="defaults">
      <str name="suggest">true</str>
      <str name="suggest.count">10</str>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
</requestHandler>

查询:

/suggest&df=productName&cfq=Product&suggest=true&suggest.build=true&suggest.dictionary=mySuggester&suggest.q=cap

该参数被命名为 suggest.cfq(与建议模块的其他参数一样),而不仅仅是普通的 cfq.