function_score里面的functions只支持数字吗。

来源:8-17 自定义score计算(下)

阿拉斌

2021-02-08

我使用keyword类型的,他会报错

“caused_by” : {
“type” : “illegal_argument_exception”,
“reason” : “Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [standardItem] in order to load field data by uninverting the inverted index. Note that this can use significant memory.”
}

写回答

1回答

龙虾三少

2021-02-10

要参与运算的不能是字符串

0
1
阿拉斌
好的,谢谢老师
2021-02-10
共1条回复

ES7+Spark 构建高匹配度搜索服务+千人千面推荐系统

ElasticSearch实现高相关性搜索,Spark MLlib实现个性化推荐

1384 学习 · 559 问题

查看课程