in my code , I want to count the index size ,like rest api:
curl -XGET 'host:port/index/type/_count&q=xxx:xxx'
but in docs ,I can't find some way to solve this problem , if we cache the data use
dataframe.count ,too slow and if our data size is larger ,no result about the count,how can we make it run quickly
in elastic4s ,we can use
search in index/type query xxx size 0 and get hit to solve this problem