From 6ef556b25f21207d3c72a909f9d028dc82789675 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 23 May 2016 17:58:03 +0200 Subject: [PATCH] SONAR-7613 remove _id path from users/user index --- .../java/org/sonar/server/user/index/UserIndexDefinition.java | 3 --- 1 file changed, 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(); -- 2.39.5