diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantLongTerms.java b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantLongTerms.java index 79e05f4be9a..2d512632f50 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantLongTerms.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantLongTerms.java @@ -66,11 +66,6 @@ public class ParsedSignificantLongTerms extends ParsedSignificantTerms { return key; } - @Override - public int compareTerm(SignificantTerms.Bucket other) { - return key.compareTo(((ParsedBucket) other).key); - } - @Override protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException { builder.field(CommonFields.KEY.getPreferredName(), key); diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantStringTerms.java b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantStringTerms.java index 28d889b15c2..fb1c7728e0c 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantStringTerms.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/ParsedSignificantStringTerms.java @@ -67,11 +67,6 @@ public class ParsedSignificantStringTerms extends ParsedSignificantTerms { return Double.parseDouble(key.utf8ToString()); } - @Override - public int compareTerm(SignificantTerms.Bucket other) { - return key.compareTo(((ParsedBucket) other).key); - } - @Override protected XContentBuilder keyToXContent(XContentBuilder builder) throws IOException { return builder.field(CommonFields.KEY.getPreferredName(), getKey());