From 32e26a6bd0c21b2c0fd5a1040c98967df84469e2 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 2 Aug 2010 16:32:52 +0300 Subject: [PATCH] fix valueField name --- .../facets/geodistance/GeoDistanceFacetCollectorParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();