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

版本: 6.8-7.15

简要来说,当 Elasticsearch 在 Well-Known Text (WKT) 字符串结束后遇到额外的文本时,会发生此错误。WKT 是一种用于表示矢量几何对象的文本标记语言。该错误表明 WKT 字符串格式不正确或未正确关闭。要解决此问题,您应该检查并更正 WKT 字符串。确保其格式正确,所有括号都正确闭合,并且在字符串结束后没有不必要的字符或空格。

日志上下文 #

日志 “expected end of WKT string but found additional text:” 的类名是 GeoWKTParser.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:

/** next word in the stream */
private static void checkEOF(StreamTokenizer stream) throws ElasticsearchParseException, IOException {
    if (stream.nextToken() != StreamTokenizer.TT_EOF) {
        throw new ElasticsearchParseException("expected end of WKT string but found additional text: "
        + tokenString(stream), stream.lineno());
    }
}