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

版本: 6.8-8.9

简要来说,当在 Elasticsearch 查询中多次指定 Debug PLAN 参数时会出现此错误。Elasticsearch 命令和参数在单个查询中应该是唯一的。要解决此问题,您应该检查查询并确保 Debug PLAN 参数只指定一次。如果出现多次,请删除重复项。同时,确保参数按照 Elasticsearch 语法规则正确格式化。

日志上下文 #

日志 “Debug PLAN should be specified at most once” 的类名是 CommandBuilder.java。我们从 Elasticsearch 源代码中提取了以下内容,供寻求深入背景的人参考:

Source source = source(ctx);
 if (ctx.FORMAT().size() > 1) {
 throw new ParsingException(source, "Debug FORMAT should be specified at most once");
 }
 if (ctx.PLAN().size() > 1) {
 throw new ParsingException(source, "Debug PLAN should be specified at most once");
 }  Debug.Type type = null;  if (ctx.type != null) {