使用PutMapping
API更新索引的映射,现在可以看到日志中与API失败相关的一些错误。
我正在使用JEST
客户端发出PutMapping
请求,但API的响应没有明确的错误原因。
下面是API调用的Java代码。
PutMapping putMapping = new PutMapping.Builder(index, type, mapping).build();
JestResult putMappingResult = client.execute(putMapping);
if (putMappingResult.isSucceeded()) {
// Do something
} else {
log.error("putmapping failed and cause is {} ", putMappingResult.getErrorMessage());
}
我收到如下错误消息,该错误消息没有明确指定由于 putMapping 失败而导致所有字段发生重大更改的情况。
映射失败,原因是 “ RemoteTransportException [[] [inet [xxxx:9300]] [indices:admin / mapping / put]]; 嵌套:MergeMappingException [由于失败而失败{ [回复]不同类型,current_type [long],merged_type [整数],不同类型的映射器[count],current_type [long], merged_type [integer],不同类型的映射器[rating],current_type [double],merged_type [float],mapper [participants.id]不同 类型,current_type [long],merged_type [integer],映射器 不同类型的[latestPostDate.minutes],current_type [long], merged_type [整数],不同类型的映射器[publish_date.years], current_type [long],merged_type [integer],映射器[threadStyle]具有 不同的索引值,映射器[threadStyle]具有不同的doc_values 值,映射器[样式]具有不同的标记化值,映射器[样式] 具有不同的index_analyzer,映射器[作者]具有不同的索引 值,映射器[作者]具有不同的存储值,映射器[作者] 具有不同的doc_values值,映射器[作者]具有不同的 标记值,映射器[}]; “
还检查了开玩笑的客户端代码,找不到太多有用的信息。