aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-23 17:58:03 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-05-24 23:12:58 +0200
commit6ef556b25f21207d3c72a909f9d028dc82789675 (patch)
treee0268a2eebcb72794f9d40bb6bcf4c67da670caf
parent0e57b7c0a8fa2775e3a48d904f44ac6f7e8bed27 (diff)
downloadsonarqube-6ef556b25f21207d3c72a909f9d028dc82789675.tar.gz
sonarqube-6ef556b25f21207d3c72a909f9d028dc82789675.zip
SONAR-7613 remove _id path from users/user index
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/user/index/UserIndexDefinition.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/user/index/UserIndexDefinition.java b/server/sonar-server/src/main/java/org/sonar/server/user/index/UserIndexDefinition.java
index 1ac85f3a41f..7b7074b2f60 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/user/index/UserIndexDefinition.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/user/index/UserIndexDefinition.java
@@ -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();