How to index my documents to aggregate similar item listings together

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

2.3

Describe the issue:

Say I have a gaming website and there are panels that look like this:

Panel A:

Game: Super Mario
Language : English
Number of Players: Two
Theme: Nature

Panel B:

Game:Super Mario
Language : French
Number of Players: Two
Theme: Nature

Now, in my website instead of having two different panels like above, I want it as one with a dropdown that allows a user to browse between the different languages, instead of 2 panels.

Could you please let me know how I could restructure the indices so I can aggregate similar item listings together

Elasticsearch has collapse feature - Collapse search results | Elasticsearch Guide [8.7] | Elastic

This is not supported in OpenSearch

How can I accomplish this? If it has to be nested, could you please let me know how the nesting should like?

Configuration:

Relevant Logs or Screenshots:

I’m pretty sure collapse works in OpenSearch in the same way. It may not be documented yet.

If not, the “top hits” aggregation might be a decent alternative.