Exemple #1
0
 private String getAllIndices()
 {
     try
     {
         CatIndicesRequestParameters param = new CatIndicesRequestParameters();
         param.Format = "json";
         var response = client.CatIndices <StringResponse>(param);
         return(response.Body);
     }
     catch (Exception e)
     {
         logger.error("Exception when trying to retrieve indices! -> " + e.Message);
         lastError = e.Message;
         return("");
     }
 }