Remove compareTerm() method in parsed Significant Terms aggregations
This method has been removed in core (see #24714)
This commit is contained in:
parent
83aa00b3f6
commit
91d7bf474f
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue