# ES 1.7.3 Elasticsearch java client significant terms aggregation unknown values

**URL:** <https://discuss.elastic.co/t/es-1-7-3-elasticsearch-java-client-significant-terms-aggregation-unknown-values/265504>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [February 25, 2021, 3:14pm UTC](https://discuss.elastic.co/t/es-1-7-3-elasticsearch-java-client-significant-terms-aggregation-unknown-values/265504 "2021-02-25T15:14:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvannKurchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivannkurchenko/32/84549_2.png) [@IvannKurchenko](https://discuss.elastic.co/u/IvannKurchenko)\
**Post date:** [February 25, 2021, 3:14pm UTC](https://discuss.elastic.co/t/es-1-7-3-elasticsearch-java-client-significant-terms-aggregation-unknown-values/265504/1 "2021-02-25T15:14:14Z")

</div>

Hello, Elasticsearch Community!

Out team currently on way of migration legacy project from Elasticsearch v1.7.3 to v7.8.0. It's in most part written in Scala, so along with this we would like to replace Java client : org.elasticsearch - elasticsearch - 1.7.3 - [Maven Repository: org.elasticsearch » elasticsearch » 1.7.3](https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch/1.7.3)

And during the work, we found peace of code we very uncertain about, something like:

```auto
SignificantTerms.Bucket bucket = //fethced significant terms;
bucket.getDocCount
bucket.getSupersetDf
bucket.getSubsetSize
bucket.getSupersetSize

```

so we did not find what `getSupersetDf`, `getSubsetSize` and `getSupersetSize` stands for at all. In ES 1.7.3. documentation for significant terms aggregation: [Significant Terms Aggregation | Elasticsearch Reference [1.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/search-aggregations-bucket-significantterms-aggregation.html)  
Present only `doc_count`, `bg_count` and `score` per bucket. What is those methods stands for - we can only guess. One of our suggestions that `getSupersetDf` is same value as `bg_count`, but again main problem - there is no direct mapping between values in Java client and Elastic documentation.

Could you help us, please?

Thanks!

---

<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 25, 2021, 3:14pm UTC](https://discuss.elastic.co/t/es-1-7-3-elasticsearch-java-client-significant-terms-aggregation-unknown-values/265504/2 "2021-03-25T15:14:16Z")

</div>

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