We're using ES2.3. What would be the recommended mapping / type for storing JSON in fields? Also, what would be the maximum recommended length of these fields? We don't need the field to be analysed and it will never form part of a query. The field will simply be indexed, then returned when some other field in the doc matches a search.
The field could be quite large as it will contain an array of JSON objects defining a subset of user data that contains name, email address and greeting. Effectively the field will contain the result of a targeting exercise against a set of users, the field will then be used to drive an email process that sends email to these users. This could result in 10's to 100's of thousands of users to email.
If we had some understanding of max field length then we could work out how many documents we'd need to split a targeting result across.
We really do not want to use a doc per user targeted as this will quickly get out of hand in terms of scale.
Any insights would be much appreciated.