|
@@ -770,26 +770,31 @@ public class TopHitsAggregationBuilder extends AbstractAggregationBuilder<TopHit
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected int doHashCode() {
|
|
|
- return Objects.hash(explain, fetchSourceContext, docValueFields, storedFieldsContext, from, highlightBuilder,
|
|
|
- scriptFields, size, sorts, trackScores, version, seqNoAndPrimaryTerm);
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(super.hashCode(), explain, fetchSourceContext, docValueFields,
|
|
|
+ storedFieldsContext, from, highlightBuilder,
|
|
|
+ scriptFields, size, sorts, trackScores, version,
|
|
|
+ seqNoAndPrimaryTerm);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected boolean doEquals(Object obj) {
|
|
|
+ public boolean equals(Object obj) {
|
|
|
+ if (this == obj) return true;
|
|
|
+ if (obj == null || getClass() != obj.getClass()) return false;
|
|
|
+ if (super.equals(obj) == false) return false;
|
|
|
TopHitsAggregationBuilder other = (TopHitsAggregationBuilder) obj;
|
|
|
return Objects.equals(explain, other.explain)
|
|
|
- && Objects.equals(fetchSourceContext, other.fetchSourceContext)
|
|
|
- && Objects.equals(docValueFields, other.docValueFields)
|
|
|
- && Objects.equals(storedFieldsContext, other.storedFieldsContext)
|
|
|
- && Objects.equals(from, other.from)
|
|
|
- && Objects.equals(highlightBuilder, other.highlightBuilder)
|
|
|
- && Objects.equals(scriptFields, other.scriptFields)
|
|
|
- && Objects.equals(size, other.size)
|
|
|
- && Objects.equals(sorts, other.sorts)
|
|
|
- && Objects.equals(trackScores, other.trackScores)
|
|
|
- && Objects.equals(version, other.version)
|
|
|
- && Objects.equals(seqNoAndPrimaryTerm, other.seqNoAndPrimaryTerm);
|
|
|
+ && Objects.equals(fetchSourceContext, other.fetchSourceContext)
|
|
|
+ && Objects.equals(docValueFields, other.docValueFields)
|
|
|
+ && Objects.equals(storedFieldsContext, other.storedFieldsContext)
|
|
|
+ && Objects.equals(from, other.from)
|
|
|
+ && Objects.equals(highlightBuilder, other.highlightBuilder)
|
|
|
+ && Objects.equals(scriptFields, other.scriptFields)
|
|
|
+ && Objects.equals(size, other.size)
|
|
|
+ && Objects.equals(sorts, other.sorts)
|
|
|
+ && Objects.equals(trackScores, other.trackScores)
|
|
|
+ && Objects.equals(version, other.version)
|
|
|
+ && Objects.equals(seqNoAndPrimaryTerm, other.seqNoAndPrimaryTerm);
|
|
|
}
|
|
|
|
|
|
@Override
|