Package org.elasticsearch.index.percolator

Examples of org.elasticsearch.index.percolator.PercolatorService


        return clusterState.routingTable().index(request.index()).randomAllActiveShardsIt();
    }

    @Override protected PercolateResponse shardOperation(PercolateRequest request, int shardId) throws ElasticSearchException {
        IndexService indexService = indicesService.indexServiceSafe(request.index());
        PercolatorService percolatorService = indexService.percolateService();

        PercolatorExecutor.Response percolate = percolatorService.percolate(new PercolatorExecutor.SourceRequest(request.type(), request.source()));
        return new PercolateResponse(percolate.matches());
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.percolator.PercolatorService

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.