# Is there a way to process documents falling under 'sum\_other\_doc\_count'?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-process-documents-falling-under-sum-other-doc-count/95276>\
**Category:** Elasticsearch\
**Created:** [August 1, 2017, 4:54am UTC](https://discuss.elastic.co/t/is-there-a-way-to-process-documents-falling-under-sum-other-doc-count/95276 "2017-08-01T04:54:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [August 1, 2017, 4:54am UTC](https://discuss.elastic.co/t/is-there-a-way-to-process-documents-falling-under-sum-other-doc-count/95276/1 "2017-08-01T04:54:00Z")

</div>

I have fields that I need to aggregate on documents that fall under 'sum\_other\_doc\_count'. I think, as the field name suggests, that this is just a count of those documents. In my case, I have to do a script add on 'field1' and 'field2' of those documents and sum aggregate it. The sum will be part of the 'others' slice of my custom application. Is there a way to do 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:** [August 29, 2017, 4:54am UTC](https://discuss.elastic.co/t/is-there-a-way-to-process-documents-falling-under-sum-other-doc-count/95276/2 "2017-08-29T04:54:07Z")

</div>

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