【发布时间】:2020-10-25 17:37:05
【问题描述】:
在弹性搜索文档中,在 Term Vectors API 下
Field statistics
Setting field_statistics to false (default is true) will omit :
document count (how many documents contain this field)
sum of document frequencies (the sum of document frequencies for all terms in this field)
sum of total term frequencies (the sum of total term frequencies of each term in this field)
我不明白这部分。
我一直在尝试,但无论我如何检查,我都不知道这些字段代表什么。
据我了解,文档数是包含该字段的文档数(例如字段=名称),总词频的总和是该字段中所有词的总词数,但我没有准确得到字段。
检查我的主索引,我有一个特定的字段(title.keyword)。我假设当我设置 /index_sample/_termvectors/1?fields=title.keyword 时,我应该得到具有该字段的文档总数(doc_count = 45,000),但它返回的数量比我除了(doc_count = 17,000)。
谁能用一些简单的例子向我解释一下?几乎没有这方面的第三方文档,这让我抓狂。
谢谢!
【问题讨论】:
标签: elasticsearch elastic-stack term-vectors