【发布时间】:2013-08-20 15:41:56
【问题描述】:
我正在尝试计算索引中某个术语的 tf*idf。
在 http://yonik.com/posts/solr-relevancy-function-queries/ 发来 Yonik 的帖子之后,我尝试了http://localhost:8080/solr/select/?fl=score,id&defType=func&q=mul(tf(texto_completo,bug),idf(texto,bug))
(其中 texto_completo 是字段,'bug' 是术语)没有多大成功。回复是:
错误 400:客户端发送的请求在语法上不正确(null)。
我继续看这个答案 /a/13477887 所以我尝试做一个更简单的函数查询:
http://localhost:8080/solr/select/?q={!func}docFreq(texto_completo,bug)
然而,我得到了同样的错误。
我的语法缺少什么才能正常工作?
【问题讨论】: