]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15163 Fix project key search to be case insensitive
authorJacek <jacek.poreda@sonarsource.com>
Tue, 13 Jul 2021 10:22:47 +0000 (12:22 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 13 Jul 2021 20:03:18 +0000 (20:03 +0000)
server/sonar-webserver-es/src/main/java/org/sonar/server/measure/index/ProjectsTextSearchQueryFactory.java

index bfc1e21062aefd8c85f259d1884aa970f121b5aa..d8884fb0de60f7db3aeb6d10396da9ec555ee811 100644 (file)
@@ -94,6 +94,7 @@ class ProjectsTextSearchQueryFactory {
       @Override
       QueryBuilder getQuery(String queryText) {
         return wildcardQuery(SORTABLE_ANALYZER.subField(FIELD_KEY), "*" + queryText + "*")
+          .caseInsensitive(true)
           .boost(50f);
       }
     };