Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在尝试 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”
请建议如何解决这个问题。
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