The filter agg might do what you're looking for, but only if you know what keys you care about ahead of time (since the values are all static and manually entered).
Pretty sure I'm wrong. I don't really follow what your data looks like and how you're trying to look at it. In your example, is each "component" a row/document?