提交 e11a5df6 编写于 作者: L lican 提交者: wu-sheng

trace query start_time desc (#1106)

上级 4b96bc0d
......@@ -36,6 +36,7 @@ import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.index.query.RangeQueryBuilder;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.sort.SortOrder;
/**
* @author peng-yongsheng
......@@ -81,6 +82,7 @@ public class SegmentDurationEsUIDAO extends EsDAO implements ISegmentDurationUID
boolQueryBuilder.must().add(QueryBuilders.termQuery(SegmentDurationTable.APPLICATION_ID.getName(), applicationId));
}
searchRequestBuilder.addSort(SegmentDurationTable.START_TIME.getName(), SortOrder.DESC);
searchRequestBuilder.setSize(limit);
searchRequestBuilder.setFrom(from);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册