private void verifyElasticSearchMappings() {
if (!jres.bool(new JresIndexExists(index)).verity()) {
jres.quest(new JresCreateIndex(index));
}
if (!jres.bool(new JresTypeExists(index, INDEX_TYPE_TASK)).verity()) {
jres.quest(new JresPutMapping(index, INDEX_TYPE_TASK, getElasticSearchJson("/task.mapping.json")));
}
if (!jres.bool(new JresTypeExists(index, INDEX_TYPE_TASK_LOG)).verity()) {
jres.quest(new JresPutMapping(index, INDEX_TYPE_TASK_LOG, getElasticSearchJson("/taskLog.mapping.json")));
}
if (!jres.bool(new JresTypeExists(index, INDEX_TYPE_WORKER)).verity()) {
jres.quest(new JresPutMapping(index, INDEX_TYPE_WORKER, getElasticSearchJson("/worker.mapping.json")));
}
}