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

版本: 6.8-8.9

简而言之,当 Elasticsearch 查询的内部折叠字段中存在错误或无效令牌时,会出现此错误。这可能是由于拼写错误、字段名错误或字段不存在导致的。要解决此问题,您可以:1)检查查询中是否存在拼写错误或字段名错误。2)验证您尝试折叠的字段在索引中确实存在。3)确保您折叠的字段不是分析字段,因为 Elasticsearch 不支持在分析字段上进行折叠。

日志上下文 #

日志"Invalid token in the inner collapse"的类名是 InnerHitBuilder.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的用户参考:

    }
     }
     }
     }
     if (isParsedCorrectly == false) {
        throw new ParsingException(parser.getTokenLocation(); "Invalid token in the inner collapse");
     }  }; COLLAPSE_FIELD; ObjectParser.ValueType.OBJECT);
     }
     private String name;