Solr:是否可以调用“concat”? “copyField”源中的函数“#xFF1F;”
例如,如果我定义下面的“copyField”,solr启动时会抛出这个异常: org.apache.solr.common.SolrException:copyField源:'concat('i1',id1)'不是一个glob,并且不匹配任何显式字段或dynamicField。
<copyField source="concat('i1', id1)" dest="test" />
<copyField source="concat('i2', id2)" dest="test" />
但“concat('i1', id1)”可以设置为查询请求的“fl”,不会出现任何错误。
For example if I define the "copyField" below, the solr will throw this exception when startup:
org.apache.solr.common.SolrException: copyField source :'concat('i1', id1)' is not a glob and doesn't match any explicit field or dynamicField.
<copyField source="concat('i1', id1)" dest="test" />
<copyField source="concat('i2', id2)" dest="test" />
But "concat('i1', id1)" can set to the "fl" of the query request without any errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 Solr 的更新请求处理器的帮助下存档相同的内容
您可以使用
ConcatFieldUpdateProcessorFactory
:例如:
有关更新处理器的更多详细信息,请参阅下面的链接。
更新请求处理器
注意:重新启动 Solr 服务器并索引新文档。
You can archive the same with the help of Update request Processors of Solr
You can use the
ConcatFieldUpdateProcessorFactory
:For Example :
More details on the Update processors are found on the link below.
Update Request Processors
Note : Restart the Solr server and to index new documents.