Esempio n. 1
0
 public static void addData() throws ElasticsearchException, IOException {
   List<Map<String, Object>> m = Utils.getData();
   EsApi esApi = new EsApi();
   for (Map<String, Object> a : m) {
     esApi.createIndex("fund", "fund", a);
   }
 }