Do I need to optimize document like this?


I was wondering, how does elastic search work in the background after document is indexed.
Lets say I have billions of documents like this:

	"user_id": "1",
	"status": "enabled"

Would it make any difference if I indexed those documents like this?

	"uid": "1",
	"s": "1"

Does elastic search have any own optimization in background for shortening data?
Would it be wise to design document structure to use shortenings and codes instead of plain raw text?

As example, instead of text, I would insert number from list:
0 = pending
1 = enabled
2 = disabled

Would this be considered as smart approach when designing document "schema"?


Any help with this please? :slight_smile:

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