On multilingual websites, using the Index language fallback fulltext fields using "language undefined" option will cause fulltext fields to index the same value multiple times.

Steps to reproduce:

1. Create an index and enable the Index language fallback fulltext fields using "language undefined" option
2. Index content title as fulltext
3. Index Language (with fallback) field
4. Enable languages: English, French, Spanish, Russian, Arabic, Chinese (Traditional)
5. Create a page in English, translate it into French
6. Notice that Solr has indexed 2 documents, one for English and one for French

The problem:

The language_undefined title (tm_X3b_und_title) field contains the same value 4 times, once for each untranslated language.

Proposed solution:

When using the Index language fallback fulltext fields using "language undefined" option, only keep the first value in the UND fulltext fields.

Comments

stefan.butura created an issue. See original summary.

stefan.butura’s picture

StatusFileSize
new1.46 KB
stefan.butura’s picture

  • mkalkbrenner committed 5564c07d on 4.x
    feat: #3549962 Duplicate field values for language fallback content when...
mkalkbrenner’s picture

Status: Needs review » Fixed

Thank you!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.