-
-
Save VinACE/92d58152ac2c33800bf53420168b6df9 to your computer and use it in GitHub Desktop.
Index mapping structure for world index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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