org.elasticsearch.client.ResponseException: method [PUT], host [http://192.168.100.16:9200], URI [/xmregime/_doc/4a5d7739a215499eae7fe099ad218d44?timeout=1m], status line [HTTP/1.1 400 Bad Request] {"error":{"root_cause":[{"type":"mapper_parsing_exceptio
时间: 2024-01-31 21:03:43 浏览: 156
n","reason":"failed to parse field [field_name] of type [text] in document with id '4a5d7739a215499eae7fe099ad218d44'. Preview of field's value: '{\"key\":\"value\"}'. Caused by: org.elasticsearch.index.mapper.MapperParsingException: analyzer [standard] not found for field [field_name]"}],"type":"mapper_parsing_exception","reason":"failed to parse field [field_name] of type [text] in document with id '4a5d7739a215499eae7fe099ad218d44'. Preview of field's value: '{\"key\":\"value\"}'. Caused by: org.elasticsearch.index.mapper.MapperParsingException: analyzer [standard] not found for field [field_name]'","caused_by":{"type":"mapper_parsing_exception","reason":"analyzer [standard] not found for field [field_name]"}},"status":400}
这是一个 Elasticsearch 的错误信息,其中包含了请求的方法、主机地址、URI、状态码以及错误原因。根据错误信息可以看出,请求中的某个字段解析失败,因为该字段的类型是 text,但是在文档中没有指定该字段使用的分析器。这个错误可以通过在文档中指定分析器来解决。
阅读全文