Is an index template required when storing 64-bit unsigned integers

Hello,
I am working on a C++ native component that will store metric data in Elastic Search. From what I can tell, dynamic data mapping will not handle unsigned 64-bit numbers. So, my conclusion is that I need an index template in order to ensure the metric value types are correct.

Can anyone confirm this?

Thanks

Hi @Ken_Rowland
Welcome to the community.

You should always use a template to define your mappings. That is best practice. "Default" Mappings are really just for discovery / dev / test. Anything serious or special.. like your case should have well defined mappings defined in a template.
Hope that helps.

1 Like