ElasticSearch 修改字段类型
场景
1.接口统计字段time创建索引默认设置为了String 类型没有办法统计
解决方案
1.管道pipeline 方式
1.1设置预处理转换字段
PUT _ingest/pipeline/forum_string_to_integer
{
"description": "converts the content of the id field to an integer",
"processors" : [
{
"convert" : {
"field" :
原创
2022-02-11 17:16:08 ·
997 阅读 ·
0 评论