]> source.dussan.org Git - sonarqube.git/commit
SONAR-5870 improve rule text search
authorDaniel Schwarz <bartfastiel@users.noreply.github.com>
Wed, 6 Sep 2017 08:09:46 +0000 (10:09 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 08:09:46 +0000 (10:09 +0200)
commitb793d3a80995b0fc008c33b37bc6304cf06426ec
tree79db9e4ee4fc95b1bd3e22db6e46e983eea67bc6
parent54ed8dd878ce2891196c5232b741ccd9bc68c2b8
SONAR-5870 improve rule text search

Allows to search for partial names, and allows an intelligent "english" search in the description. Special syntax (like "+(a|b|c)") will not be interpreted anymore.
server/sonar-server/src/main/java/org/sonar/server/es/DefaultIndexSettings.java
server/sonar-server/src/main/java/org/sonar/server/es/DefaultIndexSettingsElement.java
server/sonar-server/src/main/java/org/sonar/server/es/textsearch/ComponentTextSearchQueryFactory.java
server/sonar-server/src/main/java/org/sonar/server/es/textsearch/JavaTokenizer.java [new file with mode: 0644]
server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndex.java
server/sonar-server/src/main/java/org/sonar/server/rule/index/RuleIndexDefinition.java
server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexDefinitionTest.java
server/sonar-server/src/test/java/org/sonar/server/rule/index/RuleIndexTest.java
server/sonar-server/src/test/java/org/sonar/server/rule/ws/SearchActionTest.java