diff options
author | Daniel Schwarz <daniel.schwarz@sonarsource.com> | 2017-01-11 14:10:46 +0100 |
---|---|---|
committer | Daniel Schwarz <daniel.schwarz@sonarsource.com> | 2017-01-16 17:31:29 +0100 |
commit | 99edd870a8e54b55bfdf391965962ed5ea96148e (patch) | |
tree | 5432ae49d9b0a090fe631e45c677a6450b3a0dde /sonar-ws/src/main | |
parent | bc06486e57aaaf8cd1dcdc44d99c33aef0cf7113 (diff) | |
download | sonarqube-99edd870a8e54b55bfdf391965962ed5ea96148e.tar.gz sonarqube-99edd870a8e54b55bfdf391965962ed5ea96148e.zip |
SONAR-7282 implement global search with elasticsearch
Change api/component/suggestions.
The index is not yet cleaned up if a project's content changes or a project is deleted.
Delete previous ruby implementation of the webservice.
Diffstat (limited to 'sonar-ws/src/main')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-components.proto | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java index 7301b14808b..76487243281 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java @@ -30,6 +30,7 @@ public class ComponentsWsParameters { public static final String ACTION_SHOW = "show"; public static final String ACTION_BULK_UPDATE_KEY = "bulk_update_key"; public static final String ACTION_SEARCH_PROJECTS = "search_projects"; + public static final String ACTION_SUGGESTIONS = "suggestions"; // parameters public static final String PARAM_QUALIFIERS = "qualifiers"; diff --git a/sonar-ws/src/main/protobuf/ws-components.proto b/sonar-ws/src/main/protobuf/ws-components.proto index fdf92f4dbae..c05da782e17 100644 --- a/sonar-ws/src/main/protobuf/ws-components.proto +++ b/sonar-ws/src/main/protobuf/ws-components.proto @@ -46,6 +46,16 @@ message ShowWsResponse { repeated Component ancestors = 3; } +// WS api/components/suggestions +message SuggestionsWsResponse { + repeated Qualifier results = 2; + + message Qualifier { + optional string q = 1; + repeated Component items = 4; + } +} + // WS api/components/prepare_bulk_update_key message BulkUpdateKeyWsResponse { repeated Key keys = 1; |