find the average store size of a document type in elasticsearch
elasticsearch
Solution
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.
Problem
How can I know the size (in bytes) that a specific document type takes (say, type 1 and type2)? If I try: ``` 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