# Aggregation Terms + Bucketscript

**URL:** <https://discuss.elastic.co/t/aggregation-terms-bucketscript/75612>\
**Category:** Elasticsearch\
**Created:** [February 18, 2017, 5:55pm UTC](https://discuss.elastic.co/t/aggregation-terms-bucketscript/75612 "2017-02-18T17:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cerias](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@cerias](https://discuss.elastic.co/u/cerias)\
**Post date:** [February 18, 2017, 5:55pm UTC](https://discuss.elastic.co/t/aggregation-terms-bucketscript/75612/1 "2017-02-18T17:55:06Z")

</div>

Hi everyone,

currently im trying to get my bucketscript "ipv\_value\_total" working. ( I'm working on an ES 5.2. )

My goal is to get the bucket script to the point where i get the ipv\_value\_total for every horse bucket.

i don't know if its not possible to go with a bucketscript through a terms aggregation or my bucketpath.

> <https://gist.github.com/cerias/bd5eaf7ec96c4a2e26b10a6f35210faa>

It would be greate if someone could look at my query.

---

<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 18, 2017, 5:55pm UTC](https://discuss.elastic.co/t/aggregation-terms-bucketscript/75612/2 "2017-03-18T17:55:23Z")

</div>

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