fix type on xcontent result

This commit is contained in:
kimchy 2010-08-01 16:34:00 +03:00
parent 168363106b
commit c08791f816
1 changed files with 1 additions and 1 deletions

View File

@ -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);