【发布时间】:2022-01-24 06:20:36
【问题描述】:
我有几个这样的文件:
text: "hello, I am your friend"
text: "hello, hello"
text: "everybody said: hello hello"
在全文搜索中,我想统计搜索词出现的次数, 例如,搜索“hello”将返回 5 个结果。 我尝试使用聚合搜索,返回的结果是文档数。
如何构造这样的查询? 谢谢。
【问题讨论】:
标签: elasticsearch full-text-search