From ad3acf44729e99dd40c74d99cd0529196cb2aeec Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Mon, 15 May 2017 14:17:23 +0200 Subject: [PATCH] =?utf8?q?SONAR-9231=20remove=20usages=20of=20deprecated?= =?utf8?q?=20Elasticsearch=20=E2=80=9CfilteredQuery=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/sonar/server/issue/index/IssueIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java index 4f59937c177..bfadfef1ce5 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java @@ -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); } -- 2.39.5