Parameters params = new Parameters.Builder().loadResource("plugin.properties").build();
IndexAdminService indexAdminService = new IndexAdminService(client());
HashMap<String, String> mappings = new HashMap<String, String>();
mappings.put(ESEntityType.NODE.getIndiceName(), params.getProperty(Parameters.INDEX_MAPPING_NODE));
mappings.put(ESEntityType.WAY.getIndiceName(), params.getProperty(Parameters.INDEX_MAPPING_WAY));
indexAdminService.createIndex(INDEX_NAME, 1, 0, mappings);
}
/* save */
@Test