Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavithrachandrakasu/1c8db1fb231b2b4da984221a49a05d91 to your computer and use it in GitHub Desktop.
Save pavithrachandrakasu/1c8db1fb231b2b4da984221a49a05d91 to your computer and use it in GitHub Desktop.
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": [
{
"datetag": {
"match": "*Tag_60",
"match_mapping_type": "string",
"mapping": {
"type": "date",
"date_detection": true,
"format": "yyyyMMdd-HH:mm:ss.SSS||yyyyMMdd|| yyyyMMdd-HH:mm:ss"
}
}},
{ "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