
ES
焱鋮
这个作者很懒,什么都没留下…
展开
-
Elasticsearch更新语法
文章目录update语法示例数值列表移除列表元素添加字段1移除字段删除文档添加字段2 update 使用指定的脚本更新文档 语法 POST /<index>/_update/<_id> 示例 添加文档test PUT /test/_doc/1 { "counter" : 1, "tags" : ["red"] } 数值 将counter加上4 POST /test/_update/1 { "script" : { "source": "ctx._source.c原创 2021-06-15 15:13:03 · 1457 阅读 · 0 评论 -
ES时间格式化问题
/** *20210412T154552.611Z */ @Field(type = FieldType.Date, format = DateFormat.basic_date_time) private LocalDateTime newDate1; /** * 2021-04-12T15:45:52.611Z */ @Field(type = FieldType.Date, format = DateFormat.date_t.原创 2021-04-12 15:48:22 · 2933 阅读 · 0 评论