版本: 8.2-8.9
简而言之,当Elasticsearch遇到同名字段但格式不同时,就会发生此错误。这种情况可能发生在您使用相同字段名但不同数据类型或格式来索引文档时。要解决此问题,请确保所有文档中同名的字段具有相同的数据类型和格式。或者,您可以为不同的数据类型或格式使用不同的字段名。此外,考虑使用映射模板来强制所有文档中的字段类型和格式保持一致。
日志上下文 #
日志"fields matching more than one point format found: {}“的类名是 GenericPointParser.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:
var found = new ArrayList();
if (geohash) found.add("geohash");
if (xy) found.add(xField + "/" + yField);
if (geojson) found.add("GeoJSON");
if (found.size() > 1) {
throw new ElasticsearchParseException("fields matching more than one point format found: {}"; found);
} else if (geohash) {
if (x || y || type || coordinates) {
throw new ElasticsearchParseException(fieldError());
}
} else if (found.size() == 0) {





