gpt4 book ai didi

elasticsearch - 在Elasticsearch索引中找到所有单词及其频率

转载 作者:行者123 更新时间:2023-12-03 01:15:27 25 4
gpt4 key购买 nike

Elasticsearch新手在这里。我有一个Elasticsearch集群和一个索引http:// localhost:9200 / products,每个产品看起来像这样:

{
"name": "laptop",
"description" : "Intel Laptop with 16 GB RAM",
"title" : "...."
}
我想要一个字段中的所有关键字及其在所有文档中的出现频率来作为索引。例如。
描述:英特尔-> 2500,笔记本电脑-> 40000等。我查看了termvectors https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html,但这只是让我在单个文档中进行操作。我想要特定 Realm 中的所有文档。

最佳答案

我为此编写了一个插件,但是它的调用很昂贵(根据要获取的术语数和术语的基数)https://github.com/nirmalc/es-termstat

关于elasticsearch - 在Elasticsearch索引中找到所有单词及其频率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62745312/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com