# Is it possible to find the documents present in one bucket and not in another

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-find-the-documents-present-in-one-bucket-and-not-in-another/49878>\
**Category:** Elasticsearch\
**Created:** [May 12, 2016, 9:41am UTC](https://discuss.elastic.co/t/is-it-possible-to-find-the-documents-present-in-one-bucket-and-not-in-another/49878 "2016-05-12T09:41:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersam88](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@codersam88](https://discuss.elastic.co/u/codersam88)\
**Post date:** [May 12, 2016, 9:41am UTC](https://discuss.elastic.co/t/is-it-possible-to-find-the-documents-present-in-one-bucket-and-not-in-another/49878/1 "2016-05-12T09:41:54Z")

</div>

Hi,

Suppose I have two buckets A and B. Is there a way I can find the documents present in A but not in B.

Thank you

---

<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, 10:52pm UTC](https://discuss.elastic.co/t/is-it-possible-to-find-the-documents-present-in-one-bucket-and-not-in-another/49878/2 "2017-07-05T22:52:09Z")

</div>


