aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-es
diff options
context:
space:
mode:
authorMichal Duda <michal.duda@sonarsource.com>2020-10-01 17:59:54 +0200
committersonartech <sonartech@sonarsource.com>2020-10-07 20:07:44 +0000
commitfd7e12d22fe7e9b1b4928539a50a3c47e193fb10 (patch)
treed9e6b9503c32a9b6e7df09315e83e4268c0ffc5f /server/sonar-webserver-es
parentad3349e7b6cb30a2d0d4196060acb61e216afc81 (diff)
downloadsonarqube-fd7e12d22fe7e9b1b4928539a50a3c47e193fb10.tar.gz
sonarqube-fd7e12d22fe7e9b1b4928539a50a3c47e193fb10.zip
SONAR-13566 Add security standards filters to hotspot search WS
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
index 9ce8c318f2d..ad748b320ca 100644
--- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
+++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndex.java
@@ -460,7 +460,7 @@ public class IssueIndex {
facet.getFilterScope(),
boolQuery()
.must(securityCategoryFilter)
- .must(termQuery(FIELD_ISSUE_TYPE, VULNERABILITY.name())));
+ .must(termsQuery(FIELD_ISSUE_TYPE, VULNERABILITY.name(), SECURITY_HOTSPOT.name())));
}
}