hello
i want to find a way to get an index size with jest or transport client like with the curl command "curl localhost:9200/index1,index2/_stats" i didn't find anything in the documentation . can anyone help please
thanks
hello
i want to find a way to get an index size with jest or transport client like with the curl command "curl localhost:9200/index1,index2/_stats" i didn't find anything in the documentation . can anyone help please
thanks
Hi,
Using the Java API you can do something like:
IndicesStatsResponse rsp = client().admin().indices().prepareStats("test").get();
thanks a lot but is there a way to choose what i want to print for example if i want just to have store field !
thanks
You can use client().admin().indices().prepareStats("test").clear().setStore(true).get()
that's perfect thanks a lot
© 2020. All Rights Reserved - Elasticsearch
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.