fix type on xcontent result
This commit is contained in:
parent
168363106b
commit
c08791f816
|
@ -161,7 +161,7 @@ public class InternalGeoDistanceFacet implements GeoDistanceFacet, InternalFacet
|
||||||
|
|
||||||
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException {
|
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException {
|
||||||
builder.startObject(name);
|
builder.startObject(name);
|
||||||
builder.field("_type", "histogram");
|
builder.field("_type", "geo_distance");
|
||||||
builder.field("_field", fieldName);
|
builder.field("_field", fieldName);
|
||||||
builder.field("_value_field", valueFieldName);
|
builder.field("_value_field", valueFieldName);
|
||||||
builder.field("_unit", unit);
|
builder.field("_unit", unit);
|
||||||
|
|
Loading…
Reference in New Issue