首页 \ 问答 \ Elasticsearch重要术语聚合:doc_count和bg_count的含义(Elasticsearch significant terms aggregation: meaning of doc_count and bg_count)

Elasticsearch重要术语聚合:doc_count和bg_count的含义(Elasticsearch significant terms aggregation: meaning of doc_count and bg_count)

我在查找文档时很难解释对重要术语聚合的响应中的doc_countbg_count字段。

例如,我期望如果我不设置背景滤镜, bg_count应该是索引中文档的总数。 但是,我看到的是,每个结果的bg_count都不相同,并且它不在任何靠近文档总数的地方。

我假设doc_count是包含返回key.的文档的数量key.

这些价值的实际含义是什么? 我在哪里可以找到更完整的文档?


I am having trouble finding documentation to explain the doc_count and bg_count fields in the response to the significant terms aggregation.

For example I would expect that, if I do not set a background filter, the bg_count should the the total number of documents in the index. However what I see is that the bg_count is not the same for each result, and it isn't anywhere near the total number of documents.

I assume that doc_count is the number of documents containing the returned key.

What is the actual meaning of these values? Where can I find more complete documentation for that?


原文:https://stackoverflow.com/questions/49928871
更新时间:2022-05-06 16:05

最满意答案

我已经用答案更新了我的问题


I've updated my question with the answer

相关问答

更多
  • 希望这个例子可以帮助你: public static String convertLocalTimeToUTC(String saleTimeZone, String p_localDateTime) throws Exception{ String dateFormateInUTC=""; Date localDate = null; String localTimeZone =""; SimpleDateFormat formatter; SimpleDateFormat pars ...
  • 我认为使用momentjs的简单方法,你可以找到像这样的例子: var a = moment.tz("2013-11-18 11:55", "America/Toronto"); var b = moment.tz("May 12th 2014 8PM", "MMM Do YYYY hA", "America/Toronto"); var c = moment.tz(1403454068850, "America/Toronto"); I think the simple way to work with ...
  • 我已经用答案更新了我的问题 I've updated my question with the answer
  • public class AESEncryption { private final String ALGORITHM = "AES"; private final String MAC_ALGORITHM = "HmacSHA256"; private final String PRNG_ALGORITHM = "SHA1PRNG"; private final String TRANSFORMATION = "AES/CBC/PKCS5Padding"; priv ...
  • 在我看来,存储每位用户独特的盐是一个好主意。 每次用户登录时重新生成盐/散列组合都是有点意义的,除非您有CPU周期的刻录。 我建议使用类似Rfc2898DeriveBytes类来生成一个安全的salt / hash组合: 从密码生成散列的简单示例: string password = GetPasswordFromInput(); using (var deriveBytes = new Rfc2898DeriveBytes(password, 32)) // 32-byte salt { by ...
  • 首先,您的User对象必须实现Serializable接口,并且您必须序列化id和salt。 读这个 。 编辑:你的实体类必须是这样的:
  • 如果您觉得必须通过状态学习如何执行此操作,则可以通过指定源列表来使用回退机制: 来自文档: ssh_auth: - present - user:{{usr}} - source: - salt://users/keys/{{usr}}.id_rsa.pub - salt://users/keys/null.id_rsa.pub cat ...
  • 一些东西: 你的格式说明符包括最后的Z 这被.Net的字符串格式化视为字符文字 ,因为它不是有效的日期时间格式说明符 。 请注意,格式化标记区分大小写。 作为文字,它只是复制到输出 - 就像T一样。 因此,您生成的此字符串将始终被解析它的任何内容解释为UTC,因为这就是Z在ISO 8601标准中的含义。 这最终是您面临的问题的根本原因。 如果你打算反映一个模糊的本地时间(因为时区可能是你的.ics中的其他地方?),那么完全省略Z 但是,如果您打算包含时区偏移量,则可以使用K说明符作为DateTime值,或者 ...
  • 我想我意识到我正在做的错误。 首先,“跑步者”应该用于你需要在主人而不是远程小兵上做的事情,正如Runner文件中明确说明的那样: Salt runners work similarly to Salt execution modules however they execute on the Salt master itself instead of remote Salt minions. 对我有用的是: 'update server states': local.state.sls: - ...
  • PHP是服务器端语言,所以基本上没有任何功能可以做到这一点。 你必须让用户向你发送他的时间或时区。 例如,你可以像这里一样使用ajax,javascript是在用户计算机上运行并获取时间的客户端语言,然后将其发送到服务器。 另一种方法是通过他的IP获取用户的位置,有很多库可以做到这一点, 例如这个 ,并从他的位置创建日期 PHP is a server side language, so basically yo dont have any function that do it. you have to ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。