# Get super set frequency on significant terms aggregations

**URL:** <https://discuss.elastic.co/t/get-super-set-frequency-on-significant-terms-aggregations/22901>\
**Category:** Elasticsearch\
**Created:** [March 25, 2015, 6:20pm UTC](https://discuss.elastic.co/t/get-super-set-frequency-on-significant-terms-aggregations/22901 "2015-03-25T18:20:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuchen\_Zhao](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@Yuchen\_Zhao](https://discuss.elastic.co/u/Yuchen_Zhao)\
**Post date:** [March 25, 2015, 6:20pm UTC](https://discuss.elastic.co/t/get-super-set-frequency-on-significant-terms-aggregations/22901/1 "2015-03-25T18:20:23Z")

</div>

I'm looking for a way to display the super set frequency and subset  
frequency along with the significant terms to provide more insights. From  
the significant terms aggregation output, I can use doc\_count to calculate  
subset frequency. But is there a way to get super set frequency (the  
frequency that the term appears in the background set)?

Internally the aggregation is using the superset freq and subset freq to  
derive the scores so these numbers are calculated by the significant terms  
aggregation. How can I get the frequencies in the response? Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c089430d-e05a-460f-b42e-f0f7de42260f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c089430d-e05a-460f-b42e-f0f7de42260f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/get-super-set-frequency-on-significant-terms-aggregations/22901/2 "2017-07-06T00:23:59Z")

</div>


