Dynamic field mapping(动态字段映射)
[ "strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"]PUT my_index/my_type/1
{
"create_date": "2015/09/02"
}
GET my_index/_mapping # 1Last updated
[ "strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"]PUT my_index/my_type/1
{
"create_date": "2015/09/02"
}
GET my_index/_mapping # 1Last updated
PUT my_index
{
"mappings": {
"my_type": {
"date_detection": false
}
}
}
PUT my_index/my_type/1 # 1
{
"create": "2015/09/02"
}PUT my_index
{
"mappings": {
"my_type": {
"dynamic_date_formats": ["MM/dd/yyyy"]
}
}
}
PUT my_index/my_type/1
{
"create_date": "09/25/2015"
}PUT my_index
{
"mappings": {
"my_type": {
"numeric_detection": true
}
}
}
PUT my_index/my_type/1
{
"my_float": "1.0", # 1
"my_integer": "1" # 2
}