]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7613 remove _id path from views/view index
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 23 May 2016 15:58:13 +0000 (17:58 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 24 May 2016 21:12:58 +0000 (23:12 +0200)
server/sonar-server/src/main/java/org/sonar/server/view/index/ViewIndexDefinition.java

index 59c0fa86d57ae6367db50c01c12793c98f98d355..937e489d87ac1111d58211c9ca7f1b0fdbf17082 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.view.index;
 
-import com.google.common.collect.ImmutableMap;
 import org.sonar.api.config.Settings;
 import org.sonar.server.es.IndexDefinition;
 import org.sonar.server.es.NewIndex;
@@ -50,7 +49,6 @@ public class ViewIndexDefinition implements IndexDefinition {
 
     // type "view"
     NewIndex.NewIndexType mapping = index.createType(TYPE_VIEW);
-    mapping.setAttribute("_id", ImmutableMap.of("path", FIELD_UUID));
     mapping.stringFieldBuilder(FIELD_UUID).disableNorms().build();
     mapping.stringFieldBuilder(FIELD_PROJECTS).disableNorms().build();
   }