diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/AggregatorBuilder.java b/core/src/main/java/org/elasticsearch/search/aggregations/AggregatorBuilder.java index bd05577801aa3..04fa29989db29 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/AggregatorBuilder.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/AggregatorBuilder.java @@ -190,6 +190,7 @@ public final XContentBuilder toXContent(XContentBuilder builder, Params params) @Override public String getWriteableName() { + // NORELEASE remove this before 5.0.0GA - all builders will implement this method on their own. return type.stream().toUtf8(); } diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorBuilder.java b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorBuilder.java index cb706ac03fc76..49bbd7160cf48 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorBuilder.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/HistogramAggregatorBuilder.java @@ -51,4 +51,8 @@ protected HistogramAggregatorFactory innerBuild(AggregationContext context, Valu parent, subFactoriesBuilder, metaData); } + @Override + public String getWriteableName() { + return NAME; + } } \ No newline at end of file