From c08791f8164052072bc197789591e367a66d69cc Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 1 Aug 2010 16:34:00 +0300 Subject: [PATCH] fix type on xcontent result --- .../search/facets/geodistance/InternalGeoDistanceFacet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java index 3df9ba99c05..34d56652110 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/geodistance/InternalGeoDistanceFacet.java @@ -161,7 +161,7 @@ public class InternalGeoDistanceFacet implements GeoDistanceFacet, InternalFacet @Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); - builder.field("_type", "histogram"); + builder.field("_type", "geo_distance"); builder.field("_field", fieldName); builder.field("_value_field", valueFieldName); builder.field("_unit", unit);