Enable serializable fields for search API

Created on 30 October 2020, about 4 years ago
Updated 2 February 2023, almost 2 years ago

Problem/Motivation

Rest Views does not offer Serializable fields on a Solr Index view

Steps to reproduce

Create a Solr Index view, and add a rest export display. Select row type as fields.

When listing the fields, the "serializable" alternatives to the fields are not present.

Proposed resolution

`hook_views_data_alter` in `rest_views.module` adds a "Serializable" field for every field with type `field` (core field).

Proposed solution is to add a `hook_views_data_alter` in `rest_views_search_api.module` that adds a "Serializable" field for every field type `search_api_field`.

`SearchApiEntityFieldExport` is already implemented, so nothing else needs to be done.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom Alice Heaton

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