ElasticSearch Date 类型

Date datatype

多种时间格式

Multiple date formats

Multiple formats can be specified by separating them with || as a separator. Each format will be tried in turn until a matching format is found. The first format will be used to convert the milliseconds-since-the-epoch value back into a string.

复制代码
PUT my_index
{
  "mappings": {
    "_doc": {
      "properties": {
        "date": {
          "type":   "date",
          "format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
        }
      }
    }
  }
}
相关推荐
岳涛1 小时前
ES 9.2 起 ReadOnly 会设 indexing_complete,此前它要单独配
elasticsearch
天空属于哈夫克33 小时前
物流信息自动化:企业微信让客户跟进更简单
大数据·自动化·企业微信
Rain的Java大神之路3 小时前
别再背概念了:中台不是大数仓,湖仓一体也不是“湖+仓”——从电商下单链路一次讲透数据库、数仓、数据湖、中台、湖仓一体
大数据·数据库·后端
yyzc1111113 小时前
当中小微实体店面临经营困境时如何借助顺成汇创旗下荟生意品牌实现数字化智慧营销
大数据·运维·人工智能
喜欢吃燃面17 小时前
Git 原理与使用(三):标签、多人协作与 Git Flow 落地
大数据·git·elasticsearch
NicOoole1231 天前
虚拟人智能配音与AI短视频制作工具赋能IP运营的即时口播内容创作平台
大数据·人工智能
拖延症晚期的Liu1 天前
数据表的操作
大数据·数据库·sql
喜欢吃燃面1 天前
Git 原理与使用(二):分支是平行宇宙,远程仓库是共享时空
大数据·git·elasticsearch
大今野1 天前
专转本计算机·云计算核心考点精讲(概念·关键技术·服务模式)
大数据·云计算·big data·专转本
Elasticsearch1 天前
PHP 运行时指标:找出导致每个请求增加 24 毫秒耗时的 OPcache
elasticsearch