Created
February 28, 2018 01:22
-
-
Save pavithrachandrakasu/26f77f2952cdb092f6547d76a7e9d448 to your computer and use it in GitHub Desktop.
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/cmdty_gmi_cf_inbound | |
{ | |
"index_patterns": ["cmdty_gmi_cf_inbound*"], | |
"settings": { | |
"number_of_shards": 5 | |
}, | |
"mappings": { | |
"cmdty_gmi_cf_inbound": { | |
"properties": { | |
"TransactTime_Tag_60": { | |
"type": "date", | |
"format": "yyyyMMdd-HH:mm:ss.SSS||yyyyMMdd|| yyyyMMdd-HH:mm:ss" | |
}, | |
"ExpireDate_Tag_432": { | |
"type": "date", | |
"format": "yyyyMMdd-HH:mm:ss.SSS||yyyyMMdd|| yyyyMMdd-HH:mm:ss" | |
} | |
}, | |
"_source": { | |
"enabled": false | |
}, | |
"date_detection": true, | |
"dynamic_date_formats": ["yyyyMMdd-HH:mm:ss.SSS||yyyyMMdd|| yyyyMMdd-HH:mm:ss"], | |
"dynamic_templates": [ | |
{ "strings": { | |
"match": "*", | |
"match_mapping_type": "string", | |
"mapping": { | |
"type": "text", | |
"fields": { | |
"raw": { | |
"type": "keyword", | |
"ignore_above": 256 | |
} | |
}, | |
"include_in_all":false | |
} | |
}} | |
] | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment