Skip to content

Instantly share code, notes, and snippets.

@meDavid
Last active May 4, 2017 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meDavid/c5388f661d3ee7b73dcc992f71145da0 to your computer and use it in GitHub Desktop.
Save meDavid/c5388f661d3ee7b73dcc992f71145da0 to your computer and use it in GitHub Desktop.
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