aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-10 20:55:34 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-01-11 17:56:22 +0100
commit0b406b23fa12e1e20fac9f8a2e1bb4faf66ca812 (patch)
treedfa839c20c406c7e6fe488ba624caefabb5ad6e0
parentadc76da3d642fe8eba26d73021accbf686b67d31 (diff)
downloadsonarqube-0b406b23fa12e1e20fac9f8a2e1bb4faf66ca812.tar.gz
sonarqube-0b406b23fa12e1e20fac9f8a2e1bb4faf66ca812.zip
Drop useless ngram tokenizer on index projectmeasures
Projects can't be filtered by name in the WS, so there's no need to maintain a ngram analyzer on the name field.
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/component/es/ProjectMeasuresIndexDefinition.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/es/ProjectMeasuresIndexDefinition.java b/server/sonar-server/src/main/java/org/sonar/server/component/es/ProjectMeasuresIndexDefinition.java
index d6b2db6df7d..7424fb1b4ef 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/component/es/ProjectMeasuresIndexDefinition.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/component/es/ProjectMeasuresIndexDefinition.java
@@ -60,7 +60,7 @@ public class ProjectMeasuresIndexDefinition implements IndexDefinition {
mapping.setAttribute("_parent", ImmutableMap.of("type", TYPE_AUTHORIZATION));
mapping.setAttribute("_routing", ImmutableMap.of("required", "true"));
mapping.stringFieldBuilder(FIELD_KEY).disableNorms().build();
- mapping.stringFieldBuilder(FIELD_NAME).enableSorting().enableGramSearch().build();
+ mapping.stringFieldBuilder(FIELD_NAME).enableSorting().build();
mapping.stringFieldBuilder(FIELD_QUALITY_GATE).build();
mapping.createDateTimeField(FIELD_ANALYSED_AT);
mapping.nestedFieldBuilder(FIELD_MEASURES)