Adjacency matrix aggregation

Adjacency matrix aggregation #

A multi-bucket aggregation returning every named filter’s document set plus their pairwise INTERSECTIONS — the cross product view of several filters.

Example #

hats and delivered filters, and the documents matching both:

Buckets: hats (30), delivered (40) and delivered&hats (10); empty intersections are skipped.

Parameters for adjacency_matrix #

  • filters
    (Required, object) Named filter queries; each name (and each a&b intersection) becomes a bucket.
  • aggs
    (Optional, object) Sub-aggregations computed per bucket.
Calendar September 26, 2026
Edit Edit this page