Get super set frequency on significant terms aggregations

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
To view this discussion on the web visit
For more options, visit