public override ElasticResponse RefreshFromConnection(SearchClient cli)
 {
     var health = cli.GetIndexStats();
     if (health.HasData)
     {
         GlobalStats = health.Data.All;
         Shards = health.Data.Shards;
         Indices = health.Data.Indices;
     }
     else
     {
         GlobalStats = new IndexStats();
         Shards = new ShardCountStats();
         Indices = new Dictionary<string, IndexStats>();
     }
     return health;
 }
            public override ElasticResponse RefreshFromConnection(SearchClient cli)
            {
                var health = cli.GetIndexStats();

                if (health.HasData)
                {
                    GlobalStats = health.Data.All;
                    Shards      = health.Data.Shards;
                    Indices     = health.Data.Indices;
                }
                else
                {
                    GlobalStats = new IndexStats();
                    Shards      = new ShardCountStats();
                    Indices     = new Dictionary <string, IndexStats>();
                }
                return(health);
            }