# Query unseen items (Unseen Cards in Tinder)

**URL:** <https://discuss.elastic.co/t/query-unseen-items-unseen-cards-in-tinder/202883>\
**Category:** Elasticsearch\
**Created:** [October 9, 2019, 5:09pm UTC](https://discuss.elastic.co/t/query-unseen-items-unseen-cards-in-tinder/202883 "2019-10-09T17:09:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidbiller](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@davidbiller](https://discuss.elastic.co/u/davidbiller)\
**Post date:** [October 9, 2019, 5:09pm UTC](https://discuss.elastic.co/t/query-unseen-items-unseen-cards-in-tinder/202883/1 "2019-10-09T17:09:43Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html)  
Is this a good way? And how should i use this than?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2019, 5:09pm UTC](https://discuss.elastic.co/t/query-unseen-items-unseen-cards-in-tinder/202883/2 "2019-11-06T17:09:44Z")

</div>

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