Solr建议使用复制字段时组件不起作用

时间:2019-04-13 06:59:20

标签: apache search solr nosql

即使我为复制字段和各个字段设置了相同的参数,但如果将建议处理程序设置为使用复制字段,我将一无所获。但是,如果我将其设置为使用诸如“标题”之类的单个字段之一,那么它将返回结果。您不能将复制字段用于建议组件吗?还是我的复制字段有问题?

copy field

field type

copy field def

field def

field def

request handler and search component

1 个答案:

答案 0 :(得分:0)

您将多值设置为false。如

所示,将多个copyfield指令设置为true。
Remember to configure your fields as multivalued="true" if they will ultimately get multiple values (either from a multivalued source or from multiple copyField directives).

https://lucene.apache.org/solr/guide/6_6/copying-fields.html中。