Last active
March 15, 2020 14:01
-
-
Save iamhowardtheduck/c48aa209b17bb0a2de16ecc62aac4d0c to your computer and use it in GitHub Desktop.
COVID-19-Index_Tempate
This file contains 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
PUT _template/coronavirus | |
{ | |
"version": 1, | |
"order": 0, | |
"index_patterns": [ | |
"covid-19-john*", | |
"covid-19-euro*", | |
"covid-19*" | |
], | |
"settings": { | |
"index": { | |
"lifecycle": { | |
"name": "Coronavirus" | |
}, | |
"mapping": { | |
"total_fields": { | |
"limit": "10000" | |
} | |
}, | |
"refresh_interval": "5s", | |
"number_of_routing_shards": "30", | |
"number_of_shards": "1", | |
"number_of_replicas": "1" | |
} | |
}, | |
"mappings": { | |
"_routing": { | |
"required": false | |
}, | |
"numeric_detection": false, | |
"dynamic_date_formats": [ | |
"strict_date_optional_time", | |
"yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z", | |
"yyyy/MM/dd-HH:mm:ss", | |
"date_optional_time" | |
], | |
"_meta": {}, | |
"_source": { | |
"excludes": [], | |
"includes": [], | |
"enabled": true | |
}, | |
"dynamic": true, | |
"dynamic_templates": [], | |
"date_detection": true, | |
"properties": { | |
"Origin": { | |
"type": "keyword" | |
}, | |
"Recovered": { | |
"type": "integer" | |
}, | |
"Country_Size": { | |
"coerce": true, | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "integer", | |
"doc_values": true | |
}, | |
"CountryName": { | |
"type": "keyword" | |
}, | |
"RXcode": { | |
"type": "keyword" | |
}, | |
"Latitude": { | |
"coerce": true, | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "long", | |
"doc_values": true | |
}, | |
"corona.geo_point": { | |
"ignore_malformed": false, | |
"type": "geo_point", | |
"ignore_z_value": true | |
}, | |
"Longitude": { | |
"coerce": true, | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "long", | |
"doc_values": true | |
}, | |
"Date": { | |
"format": "yyyy/MM/dd", | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "date", | |
"doc_values": true | |
}, | |
"Province-State": { | |
"eager_global_ordinals": false, | |
"norms": false, | |
"index": true, | |
"store": false, | |
"type": "keyword", | |
"split_queries_on_whitespace": false, | |
"index_options": "docs", | |
"doc_values": true | |
}, | |
"EU": { | |
"type": "keyword" | |
}, | |
"Month": { | |
"eager_global_ordinals": false, | |
"norms": false, | |
"index": true, | |
"store": false, | |
"type": "keyword", | |
"split_queries_on_whitespace": false, | |
"index_options": "docs", | |
"doc_values": true | |
}, | |
"LastDate": { | |
"format": "yyyy-MM-dd'T'HH:mm:ss", | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "date", | |
"doc_values": true | |
}, | |
"Year": { | |
"eager_global_ordinals": false, | |
"norms": false, | |
"index": true, | |
"store": false, | |
"type": "keyword", | |
"split_queries_on_whitespace": false, | |
"index_options": "docs", | |
"doc_values": true | |
}, | |
"State": { | |
"type": "keyword" | |
}, | |
"Country": { | |
"eager_global_ordinals": false, | |
"norms": true, | |
"index": false, | |
"store": false, | |
"type": "keyword", | |
"split_queries_on_whitespace": false, | |
"doc_values": true | |
}, | |
"Deaths": { | |
"type": "integer" | |
}, | |
"Population": { | |
"coerce": true, | |
"index": true, | |
"ignore_malformed": false, | |
"store": false, | |
"type": "integer", | |
"doc_values": true | |
}, | |
"Region": { | |
"type": "keyword" | |
}, | |
"Confirmed": { | |
"type": "integer" | |
}, | |
"NewDeath": { | |
"type": "integer" | |
}, | |
"NewCase": { | |
"type": "integer" | |
}, | |
"Day": { | |
"eager_global_ordinals": false, | |
"norms": false, | |
"index": true, | |
"store": false, | |
"type": "keyword", | |
"split_queries_on_whitespace": false, | |
"index_options": "docs", | |
"doc_values": true | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PUT covid-19-john-000001
{
"aliases": {
"covid-19-john":{
"is_write_index": true
}
}
}
PUT covid-19-euro-000001
{
"aliases": {
"covid-19-euro":{
"is_write_index": true
}
}
}