Package com.dotcms.repackage.org.elasticsearch.index.query

Examples of com.dotcms.repackage.org.elasticsearch.index.query.QueryBuilder


  }

    @Override
    protected List<Contentlet> findAllCurrent ( int offset, int limit ) throws ElasticSearchException {

        QueryBuilder builder = QueryBuilders.matchAllQuery();

        SearchResponse response = client.getClient().prepareSearch()
                .setQuery( builder ).addFields("inode","identifier")
                .setSize( limit ).setFrom( offset ).execute().actionGet();
        SearchHits hits = response.getHits();
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.index.query.QueryBuilder

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.