Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.10 EE GA1, 6.2.X EE, 7.0.0 CE GA1, 7.0.1 CE GA2
-
7.0.x, 6.2.x
-
Committed
-
1.5
-
3
Description
Full reindex is using language configuration of default instances for all existing instances.
As there are some indexed fields that are localized, sometimes we are storing unnecessary data and other times we are skipping necessary languages.
For example:
- default instance: en_US, en_GB, es_ES
- second instance: es_ES
- third instance: de_DE
In all cases we will index the fields only for "en_US, en_GB, es_ES" so:
- second instance will have unnecessary "en_US, en_GB" languages stored
- third instance won't have "de_DE" indexed (and the other languages will be unnecessary indexed)
Steps to reproduce
- Configure two instances:
- default one with several languages (for example: en_US, ca_ES, es_ES)
- second one with only one language (for example: es_ES)
language configuration of each instance is modified login into the instance and going to: Control Panel => Configuration => Instance Settings => Miscellaneous
- Create a DDM structure in both instances and add some webcontents
- Check the indexes of both instances with Luke/Elasticsearch: each instance will have JournalArticle objects with fields only in its configured locales
- Execute a full reindex from Control Panel => Configuration => Server Administration => Resources
- Check again the indexes of both instances with Luke/Elasticsearch:
- Wrong behavior: default instance is fine but second instance JournalArticle objects has fields with the locales of first instance
- Expected behavior: second instance JournalArticle objects only stores "es_ES" fields
- Wrong behavior: default instance is fine but second instance JournalArticle objects has fields with the locales of first instance