Index1Type1 index1Type1 = new Index1Type1("1", "name1", "category", new Date(),location);
index1Type1.index();
Map<String, Object> fieldNewValues = new HashMap<>();
fieldNewValues.put("name", "new-name");
String updateScript = "ctx._source.name = name";
index1Type1.update(fieldNewValues, updateScript);
Index1Type1 index1Type11 = Index1Type1.find.byId("1");
assertThat(index1Type11.name).isEqualTo("new-name");
// Async