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
Is your feature request related to a problem? Please describe.
The Adjacency matrix aggregation will compute and return all buckets related to any of the combinations of the filters specified, including hits on a single filter. However, sometimes a user would want to return only the buckets related to an intersection and not for a single filter. An optional show_only_intersecting parameter would stop buckets resulting from a single filter being hit to be created.
The original intent of this feature was to support a minimum_should_match analogous to boolean queries, but the aggregation only returns adjacencies and not the combination of every filter, so the result could be confusing.
Describe the solution you'd like
From the official documentation, with the optional minimum_should_match parameter added:
The existing solutions would be to return all buckets and then use a pipeline aggregation to reduce the number of buckets, or prune in application code. Both solutions work post-reduce, after the creation of buckets, so there is needless overhead involved. The coordinating node could see too many bucket errors, especially when used in conjunction with sub-aggregations.
Additional context
I already have a PR with a working solution ready to be reviewed if this feature is deemed to be useful. The original implementation to support minimum_should_match was more detailed, but now it would be a single if statement.
The text was updated successfully, but these errors were encountered:
brusic
changed the title
[FEATURE] Add minimum should match parameter to Adjacency matrix aggregation
[FEATURE] Add match all parameter to Adjacency matrix aggregation
Jul 23, 2023
brusic
changed the title
[FEATURE] Add match all parameter to Adjacency matrix aggregation
[FEATURE] Add minimum_should_match parameter to Adjacency matrix aggregation
Jul 23, 2023
brusic
changed the title
[FEATURE] Add minimum_should_match parameter to Adjacency matrix aggregation
[FEATURE] Show only intersecting buckets to the Adjacency matrix aggregation
Jul 23, 2023
Is your feature request related to a problem? Please describe.
The Adjacency matrix aggregation will compute and return all buckets related to any of the combinations of the filters specified, including hits on a single filter. However, sometimes a user would want to return only the buckets related to an intersection and not for a single filter. An optional
show_only_intersecting
parameter would stop buckets resulting from a single filter being hit to be created.The original intent of this feature was to support a
minimum_should_match
analogous to boolean queries, but the aggregation only returns adjacencies and not the combination of every filter, so the result could be confusing.Describe the solution you'd like
From the official documentation, with the optional
minimum_should_match
parameter added:New response:
Buckets
grpA
,grpB
, andgrpC
have been omitted.Describe alternatives you've considered
The existing solutions would be to return all buckets and then use a pipeline aggregation to reduce the number of buckets, or prune in application code. Both solutions work post-reduce, after the creation of buckets, so there is needless overhead involved. The coordinating node could see too many bucket errors, especially when used in conjunction with sub-aggregations.
Additional context
I already have a PR with a working solution ready to be reviewed if this feature is deemed to be useful. The original implementation to support
minimum_should_match
was more detailed, but now it would be a single if statement.The text was updated successfully, but these errors were encountered: