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"
        }
      }
    }
  }
}
相关推荐
Elasticsearch15 小时前
安全负责人如何看待人工智能在安全运营中心(SOC)的应用
elasticsearch
Elasticsearch16 小时前
Elastic 可观测性 9.6 新功能:APM 中的人工智能原生应用调查与大语言模型追踪、人工智能站点可靠性工程师,以及将告警作为数据
elasticsearch
新*17 小时前
ES 7.17 三节点 Docker 集群的自动备份:从 NFS 被拦住到用 ACL 根治权限
运维·elasticsearch·docker·slm·快照备份
岳涛19 小时前
ES Transform 通知别名 7.x 迁 8.x 时自动建,9.0 起新建的不再有、存量照旧
elasticsearch
岳涛19 小时前
数值照旧填、请求没报错,ES 9.3 把 max_size 换成按主分片算,索引要更大才滚动
elasticsearch
Elasticsearch19 小时前
Kibana 自定义面板:用一条提示词生成任意仪表板可视化
elasticsearch
演艺大赏19 小时前
Doris 生产运维手册
大数据
如夏倾城20 小时前
网络安全态势感知全解析:概念、架构、厂商与旁路/串联接入选型
大数据·运维·网络·web安全·架构·知识图谱
Elasticsearch21 小时前
读懂细节:Elasticsearch 原生支持光学字符识别(OCR)和 Markdown 提取
elasticsearch
衡石科技1 天前
看板发出去之后:评论、订阅与受控发布的工程链路
大数据·运维·人工智能·数据可视化