在elasticsearch中找到文档类型的平均存储大小 [英] find the average store size of a document type in elasticsearch

查看:114
本文介绍了在elasticsearch中找到文档类型的平均存储大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何知道特定文档类型(例如,类型1和类型2)的大小(以字节为单位)?

How can I know the size (in bytes) that a specific document type takes (say, type 1 and type2)?

如果我尝试:

curl -XGET 
'http://localhost:9200/my_index/_stats?clear=true&store=true&indexing=true&types=type1,type2'

我只得到索引的总大小(以字节为单位)。

I only get the total size in bytes of the index.

我实际上对某种类型的文档的平均大小感兴趣,但这可以从计数和我猜得出的总大小中推导出来

I am actually interested in the average size of a document of a certain type, but this can be deduced from the count and the total size I guess

推荐答案

使用相同的索引对不同类型进行索引,并共享许多通用结构。因此,在不考虑另一种类型的影响的情况下,真的不可能分辨出一种类型的消耗量。

Different types are indexed using the same index and share many common structures. So, it's not really possible to tell how much one type is taking without considering the effect of another type.

这篇关于在elasticsearch中找到文档类型的平均存储大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆