Reverse referenced entity field values not being displayed using views

Created on 9 October 2020, about 4 years ago
Updated 20 November 2020, about 4 years ago

Problem/Motivation

Reverse referenced entity field values are not displayed using views although having being index properly.

Steps to reproduce

  • Create two content types: "magazine" and "magazine_article".
  • Add an entity reference field from "magazine" to "magazine_article" called "field_magazine_article"
  • Create example content for "magazine" and "magazine_article"
  • Reference to the example content of "magazine_article" using the entity reference field of "magazine"
  • Enable the "Reverse entity references" processor on /admin/config/search/search-api/index/search_index/processors
  • Add two example fields to be indexed: The "title" field of magazine_article, as well as the NID of the reverse referenced magazine (machine name: search_api_reverse_entity_references_node__field_magazine_article:nid)
  • Index the content of both bundles (indexing just the "magazine_article" bundle should also work I guess, but I'm not sure)
  • Add a view using your search index and make sure to select the fields you have indexed in the previous step
  • The index values for the "title" field of magazine_article are being displayed properly as expected, however there are no values for the NID field of the reverse referenced magazine

I don't necessarily need the reference to the parent magazine inside the index for searching purposes. However, I'd like to display various magazine attributes in addition to the magazine article, so I need this kind of relationship. The usual view relationship doesn't seem to work in the context of a search_api view.

I'm not sure if this is a bug or a configuration issue on my part. I tried adding other fields inside the "Reverse reference: Content using magazine_article", all to no avail as of now.

Any help would be gladly appreciated.

💬 Support request
Status

Active

Version

1.0

Component

Views integration

Created by

🇩🇪Germany tte

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