aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-01-11 14:10:46 +0100
committerDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-01-16 17:31:29 +0100
commit99edd870a8e54b55bfdf391965962ed5ea96148e (patch)
tree5432ae49d9b0a090fe631e45c677a6450b3a0dde /server/sonar-ce
parentbc06486e57aaaf8cd1dcdc44d99c33aef0cf7113 (diff)
downloadsonarqube-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 'server/sonar-ce')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java2
-rw-r--r--server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
index 4a04422918d..63c7ee154f5 100644
--- a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
+++ b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
@@ -68,6 +68,7 @@ import org.sonar.process.logging.LogbackHelper;
import org.sonar.server.component.ComponentCleanerService;
import org.sonar.server.component.ComponentFinder;
import org.sonar.server.component.ComponentService;
+import org.sonar.server.component.index.ComponentIndexer;
import org.sonar.server.computation.queue.PurgeCeActivities;
import org.sonar.server.computation.task.projectanalysis.ProjectAnalysisTaskModule;
import org.sonar.server.computation.taskprocessor.CeTaskProcessorModule;
@@ -340,6 +341,7 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer {
NewAlerts.newMetadata(),
ComponentCleanerService.class,
ProjectMeasuresIndexer.class,
+ ComponentIndexer.class,
// views
ViewIndexer.class,
diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java
index 87e2eb8a969..701961cc27d 100644
--- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java
+++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java
@@ -88,7 +88,7 @@ public class ComputeEngineContainerImplTest {
assertThat(picoContainer.getComponentAdapters())
.hasSize(
CONTAINER_ITSELF
- + 77 // level 4
+ + 78 // level 4
+ 4 // content of CeConfigurationModule
+ 3 // content of CeHttpModule
+ 5 // content of CeQueueModule