solr错误【已解决】:solr is not an explicit field and doesn't match a dynamicField

2022-12-16 17:59:59 浏览数 (1)

在配置solr字段后,错误信息如下:solr is not an explicit field and doesn't match a dynamicField

提示说: Can't load schema managed-schema: copyField dest :'text_general' is not an explicit field and doesn't match a dynamicField.

我们在来看看copyField怎么使用:

copyField:复制域:将原域的内容复制到目标域中,一般作为默认域使用

代码语言:javascript复制
<copyField source="cat" dest="text"/>

目标域:必须是multiValued类型

代码语言:javascript复制
<field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>

https://www.liangzl.com/get-article-detail-96332.html

0 人点赞