Skip to content

Commit c1d7a35

Browse files
committed
Deprecate it, and add an explanation
1 parent deaccd5 commit c1d7a35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/pipeline/MovAvgPipelineAggregationBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
import java.io.IOException;
2222
import java.util.Map;
2323

24+
/**
25+
* The actual moving_avg aggregation was removed as a breaking change in 8.0. This class exists to provide a friendlier error message
26+
* if somebody attempts to use the moving_avg aggregation via the compatible-with=7 mechanism.
27+
*
28+
* We can remove this class entirely when v7 rest api compatibility is dropped.
29+
*
30+
* @deprecated Only for 7.x rest compat
31+
*/
32+
@Deprecated
2433
public class MovAvgPipelineAggregationBuilder extends AbstractPipelineAggregationBuilder<MovAvgPipelineAggregationBuilder> {
2534
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(CommonTermsQueryBuilder.class);
2635
public static final String MOVING_AVG_AGG_DEPRECATION_MSG = "Moving Average aggregation usage is not supported. "

0 commit comments

Comments
 (0)