Package org.elasticsearch.action.count

Examples of org.elasticsearch.action.count.CountRequestBuilder.execute()


        CountRequestBuilder countRequestBuilder = client.prepareCount(persistentEntity.getIndexName())
                .setTypes(persistentEntity.getIndexType());
        if(query.getQuery() != null){
            countRequestBuilder.setQuery(query.getQuery());
        }
        return countRequestBuilder.execute().actionGet().count();
    }

    @Override
    public String index(IndexQuery query) {
        return  prepareIndex(query)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.