Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search
Commits
34a5a6f7
Commit
34a5a6f7
authored
Jul 02, 2020
by
Gradl, Tobias
Browse files
Workaround for nulled analyzer config implemented
parent
62b6e824
Changes
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,
putMapping
=
true
;
}
else
if
(
indexable
&&
datamodel
.
getIndexName
()==
null
)
{
datamodel
.
setIndexName
(
existDatamodel
.
getIndexName
());
}
/* 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
* 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
*/
if
(
existDatamodel
.
getAnalyzerFieldMap
()!=
null
)
{
/* 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
* 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
*/
datamodel
.
setAnalyzerFieldMap
(
existDatamodel
.
getAnalyzerFieldMap
());
}
}
datamodelService
.
saveOrUpdate
(
datamodel
);
...
...
Write
Preview
Supports
Markdown
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