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

版本: 7.1-8.9

简而言之,当您尝试索引 Elasticsearch 不支持的形状类型时会发生此错误。Elasticsearch 仅支持某些类型的空间数据形状,如点、线串、多边形、多点、多线串和多多边形。如果您尝试索引不支持的形状类型,您将遇到此错误。要解决此问题,请确保您尝试索引的形状类型受 Elasticsearch 支持。如果不是,您可能需要在索引之前将形状类型转换为受支持的类型。

日志上下文 #

日志 “unsupported shape type” 的类名是 GeoJson.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入理解的人参考:

}
case ENVELOPE -> {
    verifyNulls(type; geometries; orientation; radius);
    yield coordinates.asRectangle();
}
default -> throw new ElasticsearchParseException("unsupported shape type " + type);
};
}  /**
 * Checks that all passed parameters except type are null; generates corresponding error messages if they are not