0

嗨,我正在尝试 solr 中的 sum 函数

val :"sum(kcmeta/书签/计数,10.00)"

给出错误:

<lst name="error">
  <str name="msg">undefined field: "kcmeta"</str>
  <int name="code">400</int>
</lst>

我的字段名称是“kcmeta/bookmark/count”

请建议如何解决这个问题。

4

1 回答 1

0

Try to escape the special char you have in the name like this:

val:"sum(kcmeta\/bookmark\/count,10.00)"

This should not happen but it seems there is a bug, so the escaping should work around the bug: issues.apache.org/jira/browse/SOLR-3996

于 2013-09-26T08:22:52.013 回答