Does ElasticSearch add field names sizes to the object size?


(Alex) #1

I am looking to reduce the size of the ES object due to scaling requirements. After tests I have noticed that if I am using shorter field names, the object size becomes much smaller.
Does this mean that ES is storing field names as the part of the object??
I am using ES 2.4.1.


(Nik Everett) #2

It is really complicated but the short answer is "sometimes".

Your document is stored exactly as is in the _source field which is stored in chunks and compressed. So that stores the field names, though probably only one copy per chunk.

In the index itself I expect the field names to be listed, but certainly not once per document on average.

I guess it all depends on how small the index is.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.