aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-12-21 15:14:01 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-12-21 20:09:06 +0100
commit3adf50c2197373833e629c3aab6d0b8e82dc1763 (patch)
treeb4fb5676807e6bb0ef0f960c122cf69926cb2c05 /sonar-batch
parent79e09a2f6348baa1a226d63af95e5c77cd05db03 (diff)
downloadsonarqube-3adf50c2197373833e629c3aab6d0b8e82dc1763.tar.gz
sonarqube-3adf50c2197373833e629c3aab6d0b8e82dc1763.zip
SONAR-983 Improve relevance of results and group them by qualifier
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java
index 127d3415208..d0aed00b005 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java
@@ -83,7 +83,7 @@ public final class DefaultResourcePersister implements ResourcePersister {
snapshot.setCreatedAt(project.getAnalysisDate());
snapshot = session.save(snapshot);
session.commit();
- indexer.index(project.getName(), snapshot.getResourceId(), snapshot.getRootProjectId());
+ indexer.index(project.getName(), snapshot.getQualifier(), snapshot.getResourceId(), snapshot.getRootProjectId());
return snapshot;
}
@@ -133,7 +133,7 @@ public final class DefaultResourcePersister implements ResourcePersister {
} else {
snapshot = persistFileOrDirectory(project, resource, parent);
}
- indexer.index(resource.getName(), snapshot.getResourceId(), snapshot.getRootProjectId());
+ indexer.index(resource.getName(), snapshot.getQualifier(), snapshot.getResourceId(), snapshot.getRootProjectId());
return snapshot;
}