Package org.elasticsearch.search.sort

Examples of org.elasticsearch.search.sort.SortOrder


  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here


  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here

  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here

  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here

  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here

  private SearchHits searchQueryRaw(String appid, String type, QueryBuilder query, Pager... pager) {
    if (StringUtils.isBlank(appid)) {
      return null;
    }
    Pager page = (pager != null && pager.length > 0) ? pager[0] : new Pager();
    SortOrder order = page.isDesc() ? SortOrder.DESC : SortOrder.ASC;
    SortBuilder sort = StringUtils.isBlank(page.getSortby()) ?
        SortBuilders.scoreSort() : SortBuilders.fieldSort(page.getSortby()).order(order);

    int max = page.getLimit();
    int pageNum = (int) page.getPage();
View Full Code Here

TOP

Related Classes of org.elasticsearch.search.sort.SortOrder

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.