curl -X PUT "localhost:9200/yuuvis_2/_mapping?pretty" -H 'Content-Type: application/json' -d'
{
"dynamic_templates" : [
{
"keyword" : {
"match" : "key_*",
"mapping" : {
"type" : "keyword"
}
}
},
{
"text" : {
"match" : "txt_*",
"mapping" : {
"type" : "text"
}
}
},
{
"string" : {
"match" : "str_*",
"mapping" : {
"fields" : {
"raw" : {
"type" : "keyword"
}
},
"type" : "text"
}
}
},
{
"number" : {
"match" : "num_*",
"mapping" : {
"type" : "long"
}
}
},
{
"double" : {
"match" : "dbl_*",
"match_mapping_type" : "double",
"mapping" : {
"type" : "double"
}
}
},
{
"object" : {
"match" : "obj_*",
"match_mapping_type" : "object",
"mapping" : {
"type" : "object"
}
}
},
{
"date" : {
"match" : "dte_*",
"match_mapping_type" : "date",
"mapping" : {
"format" : "date_optional_time",
"type" : "date"
}
}
},
{
"boolean" : {
"match" : "bol_*",
"match_mapping_type" : "boolean",
"mapping" : {
"type" : "boolean"
}
}
},
{
"table" : {
"match" : "tab_*",
"mapping" : {
"type" : "nested"
}
}
},
{
"rawtable" : {
"match" : "rtb_*",
"mapping" : {
"fields" : {
"raw" : {
"type" : "keyword"
}
},
"type" : "text"
}
}
},
{
"locationpath" : {
"match" : "locationpath",
"match_mapping_type" : "string",
"match_pattern" : "regex",
"mapping" : {
"analyzer" : "paths",
"type" : "string"
}
}
},
{
"typepath" : {
"match" : "typepath",
"match_mapping_type" : "string",
"match_pattern" : "regex",
"mapping" : {
"analyzer" : "paths",
"type" : "string"
}
}
},
{
"contentidx" : {
"match" : "contentidx",
"match_mapping_type" : "string",
"mapping" : {
"term_vector" : "no",
"type" : "text"
}
}
},
{
"contentfile" : {
"match" : "contentfile",
"match_mapping_type" : "string",
"mapping" : {
"term_vector" : "no",
"type" : "text"
}
}
}
],
"properties" : {
"contentfile" : {
"type" : "text"
},
"contentidx" : {
"type" : "text"
},
"dte_date" : {
"type" : "date",
"format" : "date_optional_time"
},
"dte_system:creationdate" : {
"type" : "date",
"format" : "date_optional_time"
},
"dte_system:lastmodificationdate" : {
"type" : "date",
"format" : "date_optional_time"
},
"num_appbillion:index" : {
"type" : "long"
},
"num_system:contentstreamlength" : {
"type" : "long"
},
"num_system:versionnumber" : {
"type" : "long"
},
"str_appbillion:bmstring1" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_appbillion:bmstring2" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_name" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:basetypeid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentstreamfilename" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentstreamid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentstreammimetype" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentstreammimetypegroup" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:contentstreamrepositoryid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:createdby" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:digest" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:lastmodifiedby" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:objecttype" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:objecttypeid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:secondaryobjecttypeids" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:tenant" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"str_system:traceid" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
}
}
}
'
|