I am trying to create a template, in my template m trying to achive the dynamic mapping
Here is what i wrote,as in 6.2.1 the only boolean, date, double, long, object, string are automatically detected,facing issues for mapping the float,short & byte
Here if i index 127,its will be mapped to short from the short_fields ,its fine,but while indexing 325566 ,getting exception Numeric value (325566) out of range of Java short,i want to suppress this and let long_fields,should take care about this & it should be mapped to long. I have tried with corse:false,ignore_malformed:true none of the worked as excpected,same with byte ,getting invalid byte object
[
"dynamic_templates":[
{
{
"short_fields":{
"match":"*",
"match_mapping_type":"long",
"mapping":{
"type":"short",
"doc_values":true
}
}
},
{
"long_fields":{
"match":"*",
"match_mapping_type":"long",
"mapping":{
"type":"long",
"doc_values":true
}
}
}