|
|
@@ -0,0 +1,55 @@ |
|
|
curl -XPUT ${host}/_template/template_mail -d ' |
|
|
{ |
|
|
"template" : "*", |
|
|
"settings" : { |
|
|
"number_of_shards" : 3, |
|
|
"number_of_replicas" : 1 |
|
|
}, |
|
|
"mappings" : { |
|
|
"mail" : { |
|
|
"_index" : { "enabled" : true }, |
|
|
"properties" : { |
|
|
|
|
|
"document_url" : { "type" : "string", "store" : "yes", "index" : "not_analyzed", "null_value" : "#na", "include_in_all" : "false" }, |
|
|
"project" : { "type" : "string", "store" : "no", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false", "omit_norms" : "true", "omit_term_freq_and_positions" : "true" }, |
|
|
"mail-list" : { "type" : "string", "store" : "no", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false", "omit_norms" : "true", "omit_term_freq_and_positions" : "true" }, |
|
|
"message-id" : { "type" : "string", "store" : "yes", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false" }, |
|
|
"message-id-original" : { "type" : "string", "store" : "yes", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false" }, |
|
|
"in-reply-to" : { "type" : "string", "store" : "yes", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false" }, |
|
|
"references" : { "type" : "string", "store" : "yes", "index" : "not_analyzed", "null_value" : "na", "include_in_all" : "false" }, |
|
|
|
|
|
"subject" : { "boost" : "3.0", "type" : "string", "store" : "yes", "term_vector" : "with_positions_offsets", "analyzer" : "snowball" }, |
|
|
|
|
|
"message-snippet" : { "type" : "string", "store" : "yes", "index" : "no", "include_in_all" : "false" }, |
|
|
|
|
|
"first-text-message" : { "boost" : "2.0", "type" : "string", "store" : "yes", "term_vector" : "with_positions_offsets", "analyzer" : "snowball" }, |
|
|
"first-html-message" : { "boost" : "2.0", "type" : "string", "store" : "yes", "term_vector" : "with_positions_offsets", "analyzer" : "snowball_html_strip" }, |
|
|
|
|
|
"text-messages" : { "type" : "string", "store" : "yes", "term_vector" : "with_positions_offsets", "analyzer" : "snowball" }, |
|
|
"html-messages" : { "type" : "string", "store" : "yes", "term_vector" : "with_positions_offsets", "analyzer" : "snowball_html_strip" }, |
|
|
|
|
|
"text-messages-cnt" : { "type" : "integer", "include_in_all" : "false" }, |
|
|
"html-messages-cnt" : { "type" : "integer", "include_in_all" : "false" }, |
|
|
|
|
|
"message-attachments" : { |
|
|
"type" : "attachment", |
|
|
"fields" : { |
|
|
"message-attachments" : { "store" : "yes", "analyzer" : "snowball" } |
|
|
} |
|
|
}, |
|
|
|
|
|
"message-attachments-cnt" : { "type" : "integer", "include_in_all" : "false" }, |
|
|
|
|
|
"date" : { "type" : "date", "store" : "yes" }, |
|
|
"from" : { |
|
|
"type" : "multi_field", |
|
|
"fields" : { |
|
|
"from" : { "boost" : "1.5", "type" : "string" }, |
|
|
"not_analyzed" : { "type" : "string", "index" : "not_analyzed", "store" : "yes" } |
|
|
} |
|
|
} |
|
|
}, |
|
|
"_all" : { "analyzer" : "snowball_html_strip" } |
|
|
} |
|
|
} |
|
|
} |