作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
为什么要花时间:
"aggs": {
"Condition": {
"terms": {
"field": "color",
"size": 10,
"min_doc_count": 1
}
}
"aggs": {
"Condition": {
"terms": {
"field": "color",
"size": 10,
"min_doc_count": 0
}
}
最佳答案
从documentation中提取:
Setting min_doc_count=0 will also return buckets for terms that didn’t match any hit. However, some of the returned terms which have a document count of zero might only belong to deleted documents or documents from other types, so there is no warranty that a match_all query would find a positive document count for those terms.
关于elasticsearch - ElasticSearch:min_doc_count如何影响性能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32135411/
我对 interval=week 和 min_doc_count=0 进行了以下聚合 { "aggs": { "scores_by_date": { "date_histogr
我是一名优秀的程序员,十分优秀!