]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8798 remove (anyways ignored) sorting for RuleIndex.searchAll
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Wed, 28 Jun 2017 11:57:29 +0000 (13:57 +0200)
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>
Wed, 9 Aug 2017 13:09:54 +0000 (15:09 +0200)
because it is a "scan" query, that ignores sorting

server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java

index 4767f12549c060489fa8857887edbc19b26cd489..fc2fd918bb48d07142b48ff2be6cf5fb970b91f2 100644 (file)
@@ -166,7 +166,6 @@ public class RuleIndex {
 
     QueryBuilder qb = buildQuery(query);
     Map<String, QueryBuilder> filters = buildFilters(query);
-    setSorting(query, esSearch);
 
     BoolQueryBuilder fb = boolQuery();
     for (QueryBuilder filterBuilder : filters.values()) {