Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Index mapping structure for world index
{
"aliases":{},
"warmers":{},
"mappings": {
"world": {
"properties": {
"capital": {
"properties": {
"district": {
"type": "string"
},
"id": {
"type": "long"
},
"name": {
"type": "string"
},
"population": {
"type": "long"
}
},
"type": "nested"
},
"cities": {
"properties": {
"district": {
"type": "string"
},
"id": {
"type": "long"
},
"name": {
"type": "string"
},
"population": {
"type": "long"
}
},
"type": "nested"
},
"code": {
"type": "string"
},
"continent": {
"type": "string"
},
"government_form": {
"type": "string"
},
"iso_code": {
"type": "string"
},
"languages": {
"properties": {
"language": {
"type": "string"
},
"official": {
"type": "string"
},
"percentage": {
"type": "double"
}
},
"type": "nested"
},
"life_expectancy": {
"type": "double"
},
"name": {
"type": "string"
},
"population": {
"type": "long"
},
"region": {
"type": "string"
},
"surface_area": {
"type": "double"
},
"year_of_independence": {
"type": "long"
}
}
}
},
"settings": {
"index": {
"number_of_shards": "5",
"number_of_replicas": "1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment