es 查询报错 Conflict found: Field HourOfAmPm 11 differs from HourOfAmPm 0 derived from 23:30:55.999999999"(已解决)
使用range对时间进行过滤时发生的错误:
"range": { "create_time": { "gte": "2022-04-19 10:30:54", "lte": "2022-07-19 12:30:55", "format": "yyyy-MM-dd hh:mm:ss" }
报错:Conflict found: Field HourOfAmPm 11 differs from HourOfAmPm 0 derived from 23:30:55.999999999"
解决:将"yyyy-MM-dd hh:mm:ss"改为"yyyy-MM-dd HH:mm:ss",HH代表的是24小时的格式