📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 查询中提供的日期格式与预期格式不匹配时,就会出现此错误。Elasticsearch 使用特定的日期格式,如果输入不符合要求,就会抛出错误。要解决此问题,请确保查询中的日期格式与 Elasticsearch 期望的格式相匹配。您还可以在映射中使用 “date_format” 参数来指定 Elasticsearch 应该期望的格式。此外,检查日期字符串中是否存在拼写错误或错误的值。

日志上下文 #

日志 “invalid " + description + " date format " 类名是 License.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

return DateUtils.endOfTheDay(parser.text());
 } else {
 return DateUtils.beginningOfTheDay(parser.text());
 }
 } catch (IllegalArgumentException ex) {
 throw new ElasticsearchParseException("invalid " + description + " date format " + parser.text());
 }
 }
 }  public static Builder builder() {