Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons
Commits
34a5a6f7
Commit
34a5a6f7
authored
Jul 02, 2020
by
Gradl, Tobias
Browse files
Workaround for nulled analyzer config implemented
parent
62b6e824
Pipeline
#15911
passed with stages
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/eu/dariah/de/search/automation/DmeSyncService.java
View file @
34a5a6f7
...
@@ -223,17 +223,15 @@ public class DmeSyncService extends BaseSyncService<ExtendedDatamodelContainer,
...
@@ -223,17 +223,15 @@ 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
* 2. Leaving this means that the analyzer config cannot be rebuild even when manually recreating the index, which can lead to problems
* 2. Leaving this means that the analyzer config cannot be rebuild even when manually recreating the index, which can lead to problems
*
*
* => 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
());
}
}
datamodelService
.
saveOrUpdate
(
datamodel
);
datamodelService
.
saveOrUpdate
(
datamodel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment