# Filter out a large number of id's in percolator query

**URL:** <https://discuss.elastic.co/t/filter-out-a-large-number-of-ids-in-percolator-query/28156>\
**Category:** Elasticsearch\
**Created:** [August 27, 2015, 7:28am UTC](https://discuss.elastic.co/t/filter-out-a-large-number-of-ids-in-percolator-query/28156 "2015-08-27T07:28:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fresh83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fresh83/32/1500_2.png) [@Fresh83](https://discuss.elastic.co/u/Fresh83)\
**Post date:** [August 27, 2015, 7:28am UTC](https://discuss.elastic.co/t/filter-out-a-large-number-of-ids-in-percolator-query/28156/1 "2015-08-27T07:28:33Z")

</div>

I have a app users swipe through matches , i would like to make it so that users never get the same suggestion x2 , It does not seem like including 100's of must\_not clauses for all the user\_ids is efficient but maybe there is a way where i can add a filter to filter out 100s of id's ? Is this possible?

---

<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:** [July 5, 2017, 11:53pm UTC](https://discuss.elastic.co/t/filter-out-a-large-number-of-ids-in-percolator-query/28156/2 "2017-07-05T23:53:35Z")

</div>

Closed on July 5, 2017, 11:53pm UTC


