# Filter terms aggregation on array field

**URL:** <https://discuss.elastic.co/t/filter-terms-aggregation-on-array-field/296627>\
**Category:** Elasticsearch\
**Created:** [February 8, 2022, 3:39pm UTC](https://discuss.elastic.co/t/filter-terms-aggregation-on-array-field/296627 "2022-02-08T15:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 9, 2022, 9:29am UTC](https://discuss.elastic.co/t/filter-terms-aggregation-on-array-field/296627/2 "2022-02-09T09:29:16Z")

</div>

To rule out other authors than 1&2, you have to list up all the authors in `"must not"` clause in boolean query. There is no negation syntax for term level.

Discussion about ["How to find docs that contain the eact specified terms"](https://discuss.elastic.co/t/how-to-find-docs-that-contain-the-exact-specified-terms/295758) looks related to your purpose. Hopefully it may help you.

---

_[View the full topic](https://discuss.elastic.co/t/filter-terms-aggregation-on-array-field/296627)._
