]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9231 remove usages of deprecated Elasticsearch “filteredQuery”
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>
Mon, 15 May 2017 12:17:23 +0000 (14:17 +0200)
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>
Fri, 26 May 2017 08:58:05 +0000 (10:58 +0200)
server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java

index 4f59937c177b5a5259e99c7dc3968820d371bf8e..bfadfef1ce5e8c60d1859c10cf52dfe403d16a4e 100644 (file)
@@ -471,7 +471,7 @@ public class IssueIndex {
     BoolQueryBuilder esFilter = boolQuery();
     filters.values().stream().filter(Objects::nonNull).forEach(esFilter::must);
     if (esFilter.hasClauses()) {
-      esRequest.setQuery(QueryBuilders.filteredQuery(esQuery, esFilter));
+      esRequest.setQuery(QueryBuilders.boolQuery().must(esQuery).filter(esFilter));
     } else {
       esRequest.setQuery(esQuery);
     }