Retrieve fields from ResultRow if available.

Created on 30 December 2024, 3 months ago

Problem/Motivation

By default when field data is retrieved (especially for custom fields) addField method is called for each field even though ResultRow may contain field value. Especially when Retrieve result data from Solr is enabled.

Proposed resolution

Implement a setting on field level e.g. \Drupal\search_api\Plugin\views\field\SearchApiFieldTrait::defineOptions, \Drupal\search_api\Plugin\views\field\SearchApiFieldTrait::buildOptionsForm, etc. that would allow for user to specify if field value can be retrieved from index instead of using addField which is usually contains some heavy compute code.

📌 Task
Status

Active

Version

1.0

Component

Views integration

Created by

🇺🇦Ukraine dinazaur

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024