Briefly, this error occurs when the Debug PLAN parameter is specified more than once in an Elasticsearch query. Elasticsearch commands and parameters should be unique within a single query. To resolve this issue, you should review your query and ensure that the Debug PLAN parameter is only specified once. If it appears multiple times, remove the duplicates. Also, ensure that the parameter is correctly formatted according to Elasticsearch syntax rules.
This guide will help you check for common problems that cause the log ” Debug PLAN should be specified at most once ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: parser, plugin.
Log Context
Log “Debug PLAN should be specified at most once” class name is CommandBuilder.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
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) {