版本: 6.8-8.9
简而言之,当您尝试在某个字段上使用不支持该字段的命令时,会出现此错误。这可能是由于命令与字段类型不匹配造成的。要解决此问题,您可以将命令更改为与字段类型兼容的命令,或者修改字段类型以匹配命令。此外,请确保该字段存在于您的索引中,并且命令或字段名称中没有拼写错误。
日志上下文 #
日志"[{}] command does not support field [{}]“的类名是 MoveAllocationCommand.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:
} else if ("from_node".equals(currentFieldName) || "fromNode".equals(currentFieldName)) {
fromNode = parser.text();
} else if ("to_node".equals(currentFieldName) || "toNode".equals(currentFieldName)) {
toNode = parser.text();
} else {
throw new ElasticsearchParseException("[{}] command does not support field [{}]"; NAME; currentFieldName);
}
} else {
throw new ElasticsearchParseException("[{}] command does not support complex json tokens [{}]"; NAME; token);
}
}





