You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Backport 2.x] Show only intersecting buckets to the Adjacency matrix aggregation (#17006)
* Show only intersecting buckets to the Adjacency matrix aggregation (#11733)
Signed-off-by: Ivan Brusic <ivan@brusic.com>
(cherry picked from commit 8d5e1a3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Update version checks for backport
Signed-off-by: Michael Froh <froh@amazon.com>
---------
Signed-off-by: Ivan Brusic <ivan@brusic.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Froh <froh@amazon.com>
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregatorFactory.java
+15-1
Original file line number
Diff line number
Diff line change
@@ -57,11 +57,14 @@ public class AdjacencyMatrixAggregatorFactory extends AggregatorFactory {
57
57
58
58
privatefinalString[] keys;
59
59
privatefinalWeight[] weights;
60
+
61
+
privatefinalbooleanshowOnlyIntersecting;
60
62
privatefinalStringseparator;
61
63
62
64
publicAdjacencyMatrixAggregatorFactory(
63
65
Stringname,
64
66
List<KeyedFilter> filters,
67
+
booleanshowOnlyIntersecting,
65
68
Stringseparator,
66
69
QueryShardContextqueryShardContext,
67
70
AggregatorFactoryparent,
@@ -79,6 +82,7 @@ public AdjacencyMatrixAggregatorFactory(
Copy file name to clipboardexpand all lines: server/src/test/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java
0 commit comments