initializer.verifyElasticSearchMappings();
}
@Override
public List<QSTaskModel> findTasks(FindTasks findTasks) {
JresSearchBody search = new JresSearchBody().size(100);
JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_TASK, search));
return Lists.transform(reply.getHitsAsType(QSTaskElasticSearchModel.class), new Function<QSTaskElasticSearchModel, QSTaskModel>() {
@Override
public QSTaskModel apply(QSTaskElasticSearchModel input) {
return input.toNormalModel();