Query unseen items (Unseen Cards in Tinder)

I use AWS Amplify. AppSync and DynamoDB. By DynamoDB stream, I fill ElasticSearch.
I would like to offer cards to swipe. Since the user should see only not swiped cards, I need a possibility to filter the seen ones.

What is the best way to do this with ElasticSearch?
I have the Cards and of course I can also save the swipes. Term Query can be done yes, but I would like to aggregate the users to swipes in ElasticSearch instead of sending a big array.

I found this:
https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html
Is this a good way? And how should i use this than?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.