Recommendations on field name length

It seems that the field names in JSON aren't turned into a dictionary, so longer field names end up taking noticeably more space. Especially for compact data, like documents that contain only integer and date fields.

What is the recommendation for handling this? It's easy enough to have client code just serialize with short names ("a", "b", etc.), but then debugging queries or writing them by hand becomes difficult. I think I can use index_name on mapping, so that a document with field "a" could be indexed as field "createdOn", for example. Then my queries become easier, right? Then it's just the return values (_source) that has the short names.

Any guidance on this is appreciated.

Thank you.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit