版本: 6.8-8.9
简而言之,当执行 Elasticsearch 命令时未指定索引参数,就会发生此错误。索引参数至关重要,它告诉 Elasticsearch 在哪里执行操作。要解决此问题,您需要在命令中包含索引名称。如果您不确定索引名称,可以使用 ‘_cat/indices’ 命令列出所有索引。或者,如果您想将命令应用于所有索引,您可以使用 ‘_all’ 作为索引参数。
日志上下文 #
日志"[{}] command missing the index parameter"的类名是 MoveAllocationCommand.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:
} else {
throw new ElasticsearchParseException("[{}] command does not support complex json tokens [{}]"; NAME; token);
}
}
if (index == null) {
throw new ElasticsearchParseException("[{}] command missing the index parameter"; NAME);
}
if (shardId == -1) {
throw new ElasticsearchParseException("[{}] command missing the shard parameter"; NAME);
}
if (fromNode == null) {





