# List all terms of a significant term aggregation

**URL:** <https://discuss.elastic.co/t/list-all-terms-of-a-significant-term-aggregation/20076>\
**Category:** Elasticsearch\
**Created:** [October 4, 2014, 5:21pm UTC](https://discuss.elastic.co/t/list-all-terms-of-a-significant-term-aggregation/20076 "2014-10-04T17:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CC1](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@CC1](https://discuss.elastic.co/u/CC1)\
**Post date:** [October 4, 2014, 5:21pm UTC](https://discuss.elastic.co/t/list-all-terms-of-a-significant-term-aggregation/20076/1 "2014-10-04T17:21:44Z")

</div>

I am running the following ES query

curl -X GET '[http://localhost:9200/imoveis/\_search?pretty](http://localhost:9200/imoveis/_search?pretty)' -d  
'{"query":{"terms":{"field1":["searchterm"]}},  
"aggregations":{"significantQTypes":{"significant\_terms":{"field":"field1"}}},  
"size":0}'

and, instead of listing only the top 10 buckets, I would like to list 100  
buckets or all of them. Still I am not sure how this is possible, any  
suggestions? Thanks a lot!

--  
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/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [October 7, 2014, 12:54pm UTC](https://discuss.elastic.co/t/list-all-terms-of-a-significant-term-aggregation/20076/2 "2014-10-07T12:54:46Z")

</div>

You can do it by specifying size=100 in your significant terms aggregation  
definition:

{"significant\_terms":{"field":"field1", "size": 100}}

On Sat, Oct 4, 2014 at 7:21 PM, CC [cr1st1na.garbacea@gmail.com](mailto:cr1st1na.garbacea@gmail.com) wrote:

> I am running the following ES query
> 
> curl -X GET '[http://localhost:9200/imoveis/\_search?pretty](http://localhost:9200/imoveis/_search?pretty)' -d  
> '{"query":{"terms":{"field1":["searchterm"]}},  
> "aggregations":{"significantQTypes":{"significant\_terms":{"field":"field1"}}},  
> "size":0}'
> 
> and, instead of listing only the top 10 buckets, I would like to list 100  
> buckets or all of them. Still I am not sure how this is possible, any  
> suggestions? Thanks a lot!
> 
> --  
> 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/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/0cd5a5d4-8f80-4a5b-a0ff-f24ce916a07b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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/CAL6Z4j76%3D2Gif7Tii\_Pw7qJRmLWnLS%2B9TL8gQBv\_LHOwtgQqfQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j76%3D2Gif7Tii_Pw7qJRmLWnLS%2B9TL8gQBv_LHOwtgQqfQ%40mail.gmail.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:57am UTC](https://discuss.elastic.co/t/list-all-terms-of-a-significant-term-aggregation/20076/3 "2017-07-06T00:57:53Z")

</div>


