采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
设置了 match_mapping_type :"string"之后, 为什么日期字符串“1988-10-10”还是会被识别成Date类型呀? 是默认的机制优先识别为Date类型吗?假如我不想让日期字符串识别为Date类型,该怎么配置呢? 谢谢!
你需要指定 field type 为 text 或者 keyword,如果要禁用 date 自动识别,可以参考下面的文档
https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-field-mapping.html#_disabling_date_detection
非常感谢!谢谢老师!
登录后可查看更多问答,登录/注册
国际证书-Elasticsearch 认证工程师 一站式通关课
281 4
82 3
48 3
63 2
53 1