# Black and white listing on article index

**URL:** <https://discuss.elastic.co/t/black-and-white-listing-on-article-index/220652>\
**Category:** Elasticsearch\
**Created:** [February 24, 2020, 1:00pm UTC](https://discuss.elastic.co/t/black-and-white-listing-on-article-index/220652 "2020-02-24T13:00:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPelastic](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@JPelastic](https://discuss.elastic.co/u/JPelastic)\
**Post date:** [February 24, 2020, 1:00pm UTC](https://discuss.elastic.co/t/black-and-white-listing-on-article-index/220652/1 "2020-02-24T13:00:15Z")

</div>

Imagine:

- a set of five million documents representing articles you can buy (article id)
- a set of ten thousand users representing the buyers (customer id)
- white lists and black lists defined daily on the articles: this buyer can only search  
and find these articles. These lists can contain from 5 tot 500.000 articles (on article id)
- users are assigned one or more white or black lists (on list id (?))

In a search query on the articles,

- return results only out of the allowed combined subset of articles as defined by the original and, white and blacklists.
- the search queries are real time, so return a result set asap.

---

<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:** [March 23, 2020, 1:00pm UTC](https://discuss.elastic.co/t/black-and-white-listing-on-article-index/220652/2 "2020-03-23T13:00:16Z")

</div>

Closed on March 23, 2020, 1:00pm UTC

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