Instantly share code, notes, and snippets.

Embed
What would you like to do?
PUT cars
{
"mappings" : {
"car": {
"properties": {
"model": {
"type": "text"
},
"manufacturer": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"description": {
"type": "text"
},
"transmission_type": {
"type": "keyword"
},
"fuel_type": {
"type": "keyword"
},
"noise_level": {
"type": "integer"
},
"euro_standard": {
"type": "integer"
},
"year": {
"type": "integer"
},
"co2": {
"type": "integer"
},
"urban_metric": {
"type": "float"
},
"extra_urban_metric": {
"type": "float"
},
"combined_metric": {
"type": "float"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment