Help needed for index field mapping after index creation

we have a scenario where we know set of fields that we need at the time of
index creation .This we know how do create field mapping at time of index
creation .

But ,
we have other scenario where users can create custom fields after index
creation and dont know what is the field properties of the field user
trying to create .Field properties like data type , IsGrouping and others

Not sure how to do it .? If you can help with us sample code , it will be
big help .

Also interested knowing thoughts on document schema this case

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

I have the similar problem..