ELK

14. Elasticsearch动态映射-1

2022-04-07  本文已影响0人  大勇任卷舒

14.1 映射

14.2 映射规则

GET /gb/_mapping/tweet

14.3 动态映射

PUT data/_doc/1 
{ "count": 5 }

14.4 动态field映射

14.4.1 Date detection

[ "strict_date_optional_time", "yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"]
PUT my-index-000001/_doc/1
{
"create_date": "2015/09/02"
}
GET my-index-000001/_mapping

14.4.2 Disabling date detection

PUT my-index-000001
{
"mappings": {
"date_detection": false
}}
PUT my-index-000001/_doc/1 
{
"create": "2015/09/02"
}

14.4.3 Customizing detected date formats

PUT my-index-000001
{
"mappings": {
"dynamic_date_formats": ["MM/dd/yyyy"]
}}
PUT my-index-000001/_doc/1
{
"create_date": "09/25/2015"
}

14.4.4 Numeric detection

PUT my-index-000001
{
  "mappings": {
    "numeric_detection": true
  }
}

PUT my-index-000001/_doc/1
{
  "my_float": "1.0", 
  "my_integer": "1" 
}

大数据视频推荐:
腾讯课堂
CSDN
ELK入门精讲
AIOps智能运维实战
ELK7 stack开发运维
大数据语音推荐:
ELK7 stack开发运维
企业级大数据技术应用
大数据机器学习案例之推荐系统
自然语言处理
大数据基础
人工智能:深度学习入门到精通

上一篇下一篇

猜你喜欢

热点阅读