]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7851 remove Elasticsearch dynamic fields
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 11 Sep 2016 16:09:47 +0000 (18:09 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 12 Sep 2016 12:11:59 +0000 (14:11 +0200)
Dynamic fields have been used only by the index
"activities", which has been dropped.

server/sonar-server/src/main/java/org/sonar/server/es/NewIndex.java

index 6c0cac7256522de3cd956072f3d9f5458ed35434..fdcb12991c04a5e35bd110d2a6601f8d287881ee 100644 (file)
@@ -154,10 +154,6 @@ public class NewIndex {
       return setProperty(fieldName, ImmutableMap.of("type", "long"));
     }
 
-    public NewIndexType createDynamicNestedField(String fieldName) {
-      return setProperty(fieldName, ImmutableMap.of("type", "nested", "dynamic", "true"));
-    }
-
     public NewIndexType createShortField(String fieldName) {
       return setProperty(fieldName, ImmutableMap.of("type", "short"));
     }