PUT /ag2_vehicle_stats
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"doc": {
"properties": {
"vin": {
"type": "keyword"
},
"error_reported": {
"type": "integer"
},
"num_records": {
"type": "integer"
},
"start_time": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss"
},
"end_time": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss"
},
"num_days": {
"type": "integer"
}
}
}
}
}
Then, I got the following error msg:
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}, new_seg_battery_drive_energy_capacity_in_kwh={type=double}, cell_volt_diff_drive_mean_now={type=double}, city_last_day={type=keyword}, battery_life_in_days={type=integer}, total_distance_on_battery={type=integer}, daily_batt_dist_p99={type=double}, daily_charge_energy_avg_in_kwh={type=double}, num_days={type=integer}}}]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}, new_seg_battery_drive_energy_capacity_in_kwh={type=double}, cell_volt_diff_drive_mean_now={type=double}, city_last_day={type=keyword}, battery_life_in_days={type=integer}, total_distance_on_battery={type=integer}, daily_batt_dist_p99={type=double}, daily_charge_energy_avg_in_kwh={type=double}, num_days={type=integer}}}]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}, new_seg_battery_drive_energy_capacity_in_kwh={type=double}, cell_volt_diff_drive_mean_now={type=double}, city_last_day={type=keyword}, battery_life_in_days={type=integer}, total_distance_on_battery={type=integer}, daily_batt_dist_p99={type=double}, daily_charge_energy_avg_in_kwh={type=double}, num_days={type=integer}}}]"
}
},
"status" : 400
}
What's wrong here?