Skip to content

Instantly share code, notes, and snippets.

@sanaulla123
Last active November 2, 2017 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sanaulla123/b0b182518ade604b69090509b4779d01 to your computer and use it in GitHub Desktop.
Save sanaulla123/b0b182518ade604b69090509b4779d01 to your computer and use it in GitHub Desktop.
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