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"
        }
      }
    }
  }
}
相关推荐
Elasticsearch1 小时前
Elastic 获得全新的 AWS 数据能力认证
elasticsearch
Elasticsearch1 小时前
Elastic 安全借助 NVIDIA Nemotron 为物理隔离的安全运营中心提供智能体人工智能
elasticsearch
用户3610588626122 小时前
Kafka写数据入口:消息进了Broker之后交给谁
大数据·kafka
西洋鱼2 小时前
Data Agent「SQL 开发」模块拆解:让 AI 写出的 SQL 能直接上线
大数据
Elasticsearch2 小时前
NVIDIA Nemotron 现已在 Elastic 推理服务(EIS)中可用
elasticsearch
西洋鱼2 小时前
让 AI 帮数仓省钱:Data Agent 的「项目体检 + 性能调优」实战
大数据
岳涛2 小时前
考古|ES 5.1 给别名补上校验,长度上限文档里写 100 字节、5.6.16 源码是 255
elasticsearch
飞奔的瓜牛4 小时前
Flink 生产环境五大高频问题:数据倾斜、反压、Checkpoint 失败、状态膨胀与 OOM 的排查与治理
大数据·flink运维
约书亚的博客5 小时前
Elasticsearch 常用命令速查:从集群健康到索引与查询
大数据·elasticsearch·搜索引擎