Also you should not use "size": 0 in the terms aggregation for the reasons described in this issue: https://github.com/elastic/elasticsearch/issues/18838. Note that from 5.0 you will not be able to specify size: 0 in the terms aggregation
Yes your understanding is correct. I can't achieve my requirement using the min_doc_count. Because, I want to check the resulted bucket values will come between 5 to 10, 10 to 20 etc. Hence I am trying to access through scripted matrics. is there any other alternatives to achieve this ?
regarding size suggestion. Thank you will take care going forward.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.