Package com.blacklocus.jres.request.search

Examples of com.blacklocus.jres.request.search.JresSearchBody


        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();
View Full Code Here


        });
    }

    @Override
    public List<QSLogModel> findLogs(FindLogs findLogs) {
        JresSearchBody search = new JresSearchBody().size(100);
        JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_TASK_LOG, search));
        return Lists.transform(reply.getHitsAsType(QSLogElasticSearchModel.class), new Function<QSLogElasticSearchModel, QSLogModel>() {
            @Override
            public QSLogModel apply(QSLogElasticSearchModel input) {
                return input.toNormalModel();
View Full Code Here

        });
    }

    @Override
    public List<QSWorkerModel> findWorkers(FindWorkers findWorkers) {
        JresSearchBody search = new JresSearchBody().size(100);
        JresSearchReply reply = jres.quest(new JresSearch(index, ElasticSearchQSLogService.INDEX_TYPE_WORKER, search));
        return reply.getHitsAsType(QSWorkerModel.class);
    }
View Full Code Here

TOP

Related Classes of com.blacklocus.jres.request.search.JresSearchBody

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.