es自定义时间字段索引

curl -X PUT -H 'Content-Type: application/json' "localhost:9200/indexName" -d '
{
"mappings": {
"dynamic_date_formats": ["yyyy-MM-dd HH:mm:ss"]
}
}'

https://www.elastic.co/guide/en/elasticsearch/reference/7.16/dynamic-field-mapping.html

此条目发表在es分类目录。将固定链接加入收藏夹。