# How to use array\_compare in condition for nested buckets

**URL:** <https://discuss.elastic.co/t/how-to-use-array-compare-in-condition-for-nested-buckets/65659>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 10, 2016, 12:43pm UTC](https://discuss.elastic.co/t/how-to-use-array-compare-in-condition-for-nested-buckets/65659 "2016-11-10T12:43:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pransh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pransh/32/12806_2.png) [@Pransh](https://discuss.elastic.co/u/Pransh)\
**Post date:** [November 10, 2016, 12:43pm UTC](https://discuss.elastic.co/t/how-to-use-array-compare-in-condition-for-nested-buckets/65659/1 "2016-11-10T12:43:24Z")

</div>

Hi

I have nested buckets in my query

How do I use array\_compare to access field in the nested buckets in that  
Each bucket has its own bucket array

Please help me with this

---

<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:** [December 8, 2016, 12:43pm UTC](https://discuss.elastic.co/t/how-to-use-array-compare-in-condition-for-nested-buckets/65659/2 "2016-12-08T12:43:40Z")

</div>

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