How to make a template for a document which has too many fields?

I want to make an index template for a document which has over 1000 fileds.
But, I can't understand how to set a valid type for each field because making such template is too terrible...
Can I make an index template which has a vague filed name?
For example, the field name is "*-date".
In this case, I want to set the type, "timedate" for the field.


You could try something like

But it'll likely never be 100% perfect due to the size of the index you're dealing with.

Thank you for your reply!
I understantd using dynamic template mapping is better.

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