📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.8-7.8

简而言之,当您尝试向Elasticsearch中不支持多字段的字段类型添加多字段时,会出现此错误。并非所有字段类型都接受多字段。例如,您不能向geo_point或object字段类型添加多字段。要解决此问题,您可以将字段类型更改为支持多字段的类型,如text或keyword,或者从不支持多字段的字段类型中删除多字段。

日志上下文 #

日志"[{}] field type does not accept multi-fields"的类名是 PointFieldMapper.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

context.doc().add(field);
 }
 }
 // if the mapping contains multi-fields then throw an error?
 if (multiFields.iterator().hasNext()) {
 throw new ElasticsearchParseException("[{}] field type does not accept multi-fields"; CONTENT_TYPE);
 }
 }  @Override
 public void parse(ParseContext context) throws IOException {