]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7613 remove _id path from users/user index
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 23 May 2016 15:58:03 +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/user/index/UserIndexDefinition.java

index 1ac85f3a41f9e800c1ac2136973ecf92d9751f5a..7b7074b2f60f692a35859e92790cf35483d40d36 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.user.index;
 
-import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSortedMap;
 import java.util.SortedMap;
 import org.sonar.api.config.Settings;
@@ -76,8 +75,6 @@ public class UserIndexDefinition implements IndexDefinition {
 
     // type "user"
     NewIndex.NewIndexType mapping = index.createType(TYPE_USER);
-    mapping.setAttribute("_id", ImmutableMap.of("path", FIELD_LOGIN));
-
     mapping.stringFieldBuilder(FIELD_LOGIN).addSubField(SEARCH_SUB_SUFFIX, buildGramSearchField()).build();
     mapping.stringFieldBuilder(FIELD_NAME).addSubField(SEARCH_SUB_SUFFIX, buildGramSearchField()).build();
     mapping.stringFieldBuilder(FIELD_EMAIL).enableSorting().build();