Created
January 14, 2015 13:51
-
-
Save tcataldo/c0b6b3dfec9823bf6523 to your computer and use it in GitHub Desktop.
mailspool index template, with mapping
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
{ | |
"mailspool":{ | |
"template":"mailspool*", | |
"settings":{ | |
"index":{ | |
"analysis":{ | |
"analyzer":{ | |
"default":{ | |
"tokenizer":"standard", | |
"filter":[ | |
"icu_folding", | |
"elision", | |
"bm_world_delimiter" | |
], | |
"char_filter":[ | |
"html_strip" | |
] | |
} | |
}, | |
"filter":{ | |
"bm_world_delimiter":{ | |
"type":"word_delimiter", | |
"catenate_all":true, | |
"split_on_case_change":false | |
} | |
} | |
} | |
} | |
}, | |
"mappings":{ | |
"msgBody":{ | |
"_source":{ | |
"enabled":false | |
}, | |
"_all":{"enabled" : false}, | |
"properties":{ | |
"content":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"subject":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
} | |
} | |
}, | |
"msg":{ | |
"_source":{ | |
"enabled":true | |
}, | |
"_all":{"enabled" : false}, | |
"_parent":{ | |
"type": "msgBody" | |
}, | |
"properties":{ | |
"date":{ | |
"type":"date", | |
"store":"yes" | |
}, | |
"parentId":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"ownerId":{ | |
"type":"integer", | |
"store":"no" | |
}, | |
"uid":{ | |
"type":"integer", | |
"store":"no" | |
}, | |
"size":{ | |
"type":"integer", | |
"store":"yes" | |
}, | |
"in":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"no" | |
}, | |
"is":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"yes", | |
"norms" : { "enabled" : false } | |
}, | |
"has":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"yes" | |
}, | |
"filename":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"from":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"to":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"cc":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"with":{ | |
"type":"string", | |
"index":"analyzed", | |
"store":"no", | |
"norms" : { "enabled" : false } | |
}, | |
"id":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"headers":{ | |
"properties":{ | |
"date":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"from":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"to":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"cc":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"subject":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"content-type":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"reply-to":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"list-post":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"disposition-notification-to":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"x-bm_hsm_id":{ | |
"type":"string", | |
"index":"not_analyzed", | |
"store":"yes" | |
}, | |
"x-bm-event":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"x-bm-resourcebooking":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"x-bm-foldersharing":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
}, | |
"x-priority":{ | |
"type":"string", | |
"index":"no", | |
"store":"yes" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment