jres.quest(new JresIndexDocument(index, INDEX_TYPE_WORKER, logWorker.workerId, logWorker));
}
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()) {