Commit 34a5a6f7 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Workaround for nulled analyzer config implemented

parent 62b6e824
Pipeline #15911 passed with stages
in 5 minutes and 26 seconds
...@@ -223,7 +223,6 @@ public class DmeSyncService extends BaseSyncService<ExtendedDatamodelContainer, ...@@ -223,7 +223,6 @@ public class DmeSyncService extends BaseSyncService<ExtendedDatamodelContainer,
putMapping = true; putMapping = true;
} else if (indexable && datamodel.getIndexName()==null) { } else if (indexable && datamodel.getIndexName()==null) {
datamodel.setIndexName(existDatamodel.getIndexName()); datamodel.setIndexName(existDatamodel.getIndexName());
}
/* TODO: This needs some rework /* TODO: This needs some rework
* 1. Skipping this always sets analyzerFieldMap to null, it is only rebuilt if the mapping is updated to include a new configured element * 1. Skipping this always sets analyzerFieldMap to null, it is only rebuilt if the mapping is updated to include a new configured element
...@@ -231,7 +230,6 @@ public class DmeSyncService extends BaseSyncService<ExtendedDatamodelContainer, ...@@ -231,7 +230,6 @@ public class DmeSyncService extends BaseSyncService<ExtendedDatamodelContainer,
* *
* => analyzerFieldMap should not be saved with the datamodel as coming from the DME in the future to prevent all this * => analyzerFieldMap should not be saved with the datamodel as coming from the DME in the future to prevent all this
*/ */
if (existDatamodel.getAnalyzerFieldMap()!=null) {
datamodel.setAnalyzerFieldMap(existDatamodel.getAnalyzerFieldMap()); datamodel.setAnalyzerFieldMap(existDatamodel.getAnalyzerFieldMap());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment