You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/04/23 07:53:47 UTC
[incubator-skywalking] branch master updated: trace query
start_time desc (#1106)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new e11a5df trace query start_time desc (#1106)
e11a5df is described below
commit e11a5df627bee357f056689c1751bdb71f1615be
Author: lican <29...@qq.com>
AuthorDate: Mon Apr 23 15:53:43 2018 +0800
trace query start_time desc (#1106)
---
.../apm/collector/storage/es/dao/ui/SegmentDurationEsUIDAO.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/SegmentDurationEsUIDAO.java b/apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/SegmentDurationEsUIDAO.java
index 1ea7519..e05c802 100644
--- a/apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/SegmentDurationEsUIDAO.java
+++ b/apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/ui/SegmentDurationEsUIDAO.java
@@ -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);
--
To stop receiving notification emails like this one, please contact
wusheng@apache.org.