From ffcee524c57b7e6122d971231cd7cd729d94dc0f Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Mon, 15 May 2017 15:19:19 +0200 Subject: [PATCH] Make SignificantTerms.Bucket an interface rather than an abstract class Related to elastic/elasticsearch#24670 Original commit: elastic/x-pack-elasticsearch@e5b0123fbc98e8e103ffe20fea832d3a31925fd3 --- .../xpack/graph/action/TransportGraphExploreAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java b/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java index ce51762d3a4..cbfa06cb0c8 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/graph/action/TransportGraphExploreAction.java @@ -668,7 +668,7 @@ public class TransportGraphExploreAction extends HandledTransportAction buckets = significantTerms.getBuckets(); + List buckets = significantTerms.getBuckets(); for (Bucket bucket : buckets) { double signalWeight = bucket.getSignificanceScore() / totalSignalStrength; addVertex(vr.fieldName(), bucket.getKeyAsString(), signalWeight, @@ -695,7 +695,7 @@ public class TransportGraphExploreAction extends HandledTransportAction buckets = significantTerms.getBuckets(); + List buckets = significantTerms.getBuckets(); for (Bucket bucket : buckets) { totalSignalStrength += bucket.getSignificanceScore(); }