diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/GeoDistanceFacetCollectorParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/GeoDistanceFacetCollectorParser.java index 7116a8c6d5e..6887b199290 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/GeoDistanceFacetCollectorParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/GeoDistanceFacetCollectorParser.java @@ -129,7 +129,7 @@ public class GeoDistanceFacetCollectorParser implements FacetCollectorParser { unit = DistanceUnit.fromString(parser.text()); } else if (currentName.equals("distance_type") || currentName.equals("distanceType")) { geoDistance = GeoDistance.fromString(parser.text()); - } else if ("value_field".equals(currentName) || "valueName".equals(currentName)) { + } else if ("value_field".equals(currentName) || "valueField".equals(currentName)) { valueFieldName = parser.text(); } else if ("value_script".equals(currentName) || "valueScript".equals(currentName)) { valueScript = parser.text();