action_request_validation_exception: action_request_validation_exception
Elasticsearch含义
请求在执行前未通过校验。缺少必填字段或字段无效,因此 Elasticsearch 拒绝该操作。
原因
缺少必需参数(如未指定索引名)、请求体为空、字段组合无效,或在 bulk/index 请求中未提供必需信息。
解决方法
查看错误消息中缺失/无效字段的列表,并提供必需字段。根据 API 文档补全请求体和参数。在 bulk 请求中,确认每个 action 行都有正确的元数据和请求体。
同一数据库的其他条目
- security_exceptionsecurity_exception: unable to authenticate / action [...] is unauthorized for user [...] (HTTP 401/403)(无法认证 / 用户无权执行该操作)
- validation_exceptionvalidation_exception / illegal_argument_exception: Validation Failed: ...(校验失败)
- task_cancelled_exceptiontask_cancelled_exception: Task was cancelled / TaskCancelledException(任务已被取消)
- index_closed_exceptionindex_closed_exception
- unavailable_shards_exceptionunavailable_shards_exception
- query_shard_exceptionquery_shard_exception
- script_exceptionscript_exception