Render settings for displaying bundles leads to entity load

Created on 18 October 2023, 9 months ago
Updated 23 October 2023, 8 months ago

Problem/Motivation

We are using solr index a lot and e.g. use the entity id create a href via rewriting on certain data typically in an entity reference field. Since drupal 10 an the current release of search api with the rendering settings this always leads to entity loading as it tries to render the field from solr even if I just want to use the raw entity id as it comes from solr directly.

There should be a setting to not use display rendering. This is toxic to most of our systems!

Steps to reproduce

Create a Drupal 10 instance, index entity ids in an entity reference field via search_api_solr and use these in a view.

Proposed resolution

Build in a switch to not load the entities in this case.

Remaining tasks

Create the patch - I guess it must be in src/Plugin/views/field/SearchApiEntity.php line 213 as the comment states that here the objects are loaded. But I am not entirely sure about that.

✨ Feature request
Status

Postponed: needs info

Version

1.0

Component

Views integration

Created by

πŸ‡©πŸ‡ͺGermany Knurg

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

Comments & Activities

Production build 0.69.0 2024