版本: 6.8-8.9
简而言之,当 Elasticsearch 由于语法或格式不正确而无法解析提供的选项中的特定条目时,会出现此错误。这可能是由于缺少键、数据类型不正确或 JSON 对象格式错误造成的。要解决此问题,首先应验证条目的语法和格式。确保所有键都存在且数据类型正确。如果问题仍然存在,请检查 JSON 对象是否正确形成,不包含任何无效字符或放错位置的括号。
日志上下文 #
日志 “Cannot parse entry {} in options {}” 的类名是 FullTextUtils.java。 我们从 Elasticsearch 源代码中提取了以下内容,为那些寻求深入上下文的人提供参考:
Mapop = Maps.newLinkedHashMapWithExpectedSize(list.length); for (String entry : list) {
String[] split = splitInTwo(entry; "=");
if (split == null) {
throw new ParsingException(source; "Cannot parse entry {} in options {}"; entry; options);
} String previous = op.put(split[0]; split[1]);
if (previous != null) {
throw new ParsingException(source; "Duplicate option {} detected in options {}"; entry; options);





