Content is being indexed incorrectly

Created on 21 November 2023, over 1 year ago
Updated 5 December 2023, over 1 year ago

Problem/Motivation

When indexing fallback content using the search API there's an issue because the content ends up being indexed "incorrectly". By using solely the "Content (with language fallback)" datasource our indexed content will show itself with a wrong ID. This happens due to the logic implemented on the processor FallbackLanguage::alterIndexedItems. I've attached an image as a example on this.

Steps to reproduce

1. Create a search index with the datasource Content (with language fallback).
2. Index your content.
3. Check the IDs of the indexed content.

Proposed resolution

Add a extra validation on the code (see patch)

🐛 Bug report
Status

Needs review

Version

1.5

Component

Code

Created by

🇧🇷Brazil Yuri Morato Duarte

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024