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"
        }
      }
    }
  }
}
相关推荐
2601_9622184717 分钟前
万象生鲜系统多仓协同同步技术支撑生鲜企业多仓模式数字化转型
大数据·运维·微服务·云原生·架构
隔窗听雨眠43 分钟前
TDengine在AIOps中的硬核实战:从时序数据存储到智能运维的完整落地路径
大数据·运维·tdengine
Elastic 中国社区官方博客1 小时前
从建议到修复的 4 个阶段:使用 Elastic Workflows 实现人在回路中的自动化
运维·数据库·人工智能·后端·elasticsearch·ai·自动化
企鹅的企1 小时前
2027北京机器人展聚焦机器人出海合规,助力国产装备走向全球
大数据·机器人
峥嵘life1 小时前
Android16 系统 APEX 模块说明
android·大数据·开发语言
阿宁学科技术库1 小时前
关于“库库AI”在股票投研场景实用性的技术观察
大数据·人工智能·职场和发展
whcyhhh2 小时前
头歌实践教学平台:大数据存储2023(十三3)
大数据·开发语言·python
Easy_API2 小时前
OpenAI三周内第二次降价,GPT-5.6 Sol砍了20%到33
大数据·前端·人工智能·gpt·深度学习
小K讲AI营销2 小时前
智谱配售314亿港元:融资通道切换
大数据·人工智能
用户3610588626122 小时前
SparkStreaming 之 DStream 底层结构剖析
大数据·spark