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"
        }
      }
    }
  }
}
相关推荐
Elasticsearch9 分钟前
Agent 上岗做日志检测,日志赛道降本的叙事快讲不下去了
elasticsearch
BD_Marathon10 分钟前
Hadoop组成
大数据·hadoop·分布式
whcyhhh11 分钟前
头歌实践教学平台:数据科学与大数据技术导论(十八4)
大数据·开发语言·python
红色星际13 分钟前
新石器走进无人配送车下半场
大数据·人工智能
FII工业富联科技服务27 分钟前
工业AI Agent从单点应用到规模化落地:多智能体、Agentic Layer与制造运营协同架构解析
大数据·人工智能
时代分流30 分钟前
供应商管理系统:SRM数字化采购协同方案
大数据·人工智能
腾讯云大数据41 分钟前
腾讯云大数据接入 WorkBuddy:为 Agent 平台引入 Data+AI 专业智能体
大数据·人工智能·云计算·腾讯云
ZDGJ60991 小时前
国际期货科普 | 打开全球投资新视野
大数据
Elastic 中国社区官方博客1 小时前
从告警到根因仅需 3 分钟:使用 Elastic Agent Builder 实现自动化根因分析
运维·数据库·人工智能·elasticsearch·自动化·可用性测试
数智启示录1 小时前
实时数据湖 Flink CDC + Kafka +Doris 【企业级实战】之Kafka 事件缓冲层 【附核心源码】 04
java·大数据·flink·kafka·数据库开发