Index Type Stats


(Yifei) #1

Hi,

I am wondering if I can get some stats on a type level using NEST/ElasticSearch.Net or simply using ElasticSearch REST API?
We are using ES 2.3.2 and we need get type level stats to do some analysis.

Thanks,

Yifei


(Ali Beyad) #2

Hello,

By type do you mean index types? If so, you can run the _stats command on your index with the given types as filters, like:

curl -XGET 'localhost:9200/my_index/_stats?types=type1,type2


(Yifei) #3

Thank you Ali,

This is helpful.


(system) #4