esSetup.execute(deleteAll(), createIndex("ttlenabled").withSettings(
fromClassPath("essetup/settings/test_a.json")).withMapping("d",
"{\"d\": {\"_ttl\": {\"enabled\": true, \"default\": \"1d\"}}}"));
Client client = esSetup.client();
client.prepareIndex("ttlenabled", "d", "1").setSource("field1", "value1").execute().actionGet();
client.admin().indices().prepareRefresh().execute().actionGet();
Date now = new Date();
ExportResponse response = executeExportRequest(
"{\"output_cmd\": \"cat\", \"fields\": [\"_id\", \"_ttl\"]}");
List<Map<String, Object>> infos = getExports(response);