Skip to content

Instantly share code, notes, and snippets.

@johntbush
Last active November 30, 2015 04:47
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 johntbush/87fdddd3cec7c5232e2d to your computer and use it in GitHub Desktop.
Save johntbush/87fdddd3cec7c5232e2d to your computer and use it in GitHub Desktop.
awesome mapping
{
"template1":{
"order":0,
"template":"my_indices_*",
"settings":{
},
"mappings":{
"_default_":{
"dynamic_templates":[
{
"all_strings":{
"mapping":{
"index":"analyzed",
"type":"string",
"fields":{
"raw":{
"index":"not_analyzed",
"type":"string"
},
"date":{
"index":"not_analyzed",
"ignore_malformed":true,
"format":"yyyy-MM-dd HH:mm:ss||yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd||yyyy-MM-dd'T'HH:mm:ssZ",
"type":"date"
},
"double":{
"index":"not_analyzed",
"ignore_malformed":true,
"type":"double"
},
"long":{
"index":"not_analyzed",
"ignore_malformed":true,
"type":"long"
}
}
},
"match_mapping_type":"string",
"match":"*"
}
}
]
}
},
"aliases":{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment