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

版本: 6.8-7.15

简而言之,当Elasticsearch中图查询的顶点定义中存在无效或不支持的属性时,就会发生此错误。这可能是由于拼写错误、字段名不正确,或使用了不支持图查询的字段造成的。要解决此问题,您应该首先验证顶点定义中的字段名称和属性。确保它们拼写正确,并且对于图查询是有效的。如果错误仍然存在,请考虑更改字段类型或使用支持图查询的其他字段。

日志上下文 #

日志"Illegal property in graph vertices definition"类名是 RestGraphAction.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入背景的人参考:

excludes = new HashSet<>();
 while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) {
 excludes.add(parser.text());
 }
 } else {
 throw new ElasticsearchParseException("Illegal property in graph vertices definition " + fieldName;
 token.name());
 }
 }
 if (token == XContentParser.Token.VALUE_STRING) {
 if (FIELD_NAME_FIELD.match(fieldName; parser.getDeprecationHandler())) {