Im new to Elasticsearch and I cannot solve following issue. I used sampler and significant_text aggregations to find most popular words in my dataset and it worked very well. However, I would like to order the created buckets by their doc_count in a descending (or asc) manner. And that is the issue, I’m not able to find proper solution to do it.
I tried “order” command but without success (and many more). Is it even possible to sort buckets when I used sampler and significant_text aggregations? E.g. sorting worked with term aggregation but not with significant_text. Any ideas? Thanks a lot in advance for any hand.