Views can't show node title (in search results) when file is nested inside a paragraph

Created on 18 November 2022, about 2 years ago
Updated 20 November 2024, about 1 month ago

Problem/Motivation

When using views to search the index, the contents of the files are found, but their parent item is the paragraph, not the node - thus I can not access the parent node's title - I can only get info on the paragraph entity (node title is empty for search result that shows file contents). There are no available views relationships to get the node entity (to access it's title).

Steps to reproduce

I have a content type "Page" with entity reference field to a paragraph that has a file field. The search API index is configured with the appropriate processors and fields so the search can index the contents of the files.

Proposed resolution

Is there a way to show node's title in views, when the search result shows a file field that belongs to a paragraph that belongs to the node?

Feature request
Status

Fixed

Version

9.0

Component

Code

Created by

🇪🇪Estonia hanneshh

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024