Can't exclude node / Can't uninstall search api exclude

Created on 30 November 2021, about 3 years ago
Updated 23 September 2024, 3 months ago

Problem/Motivation

  1. When try to exclude a Node clicking checkbox "Prevent...", save the setting, come back to edit the Node and the checkbox remain unchecked.
    Of course nothing happened regarding the Index. I rebuilt it any way but that particular Node still showing in the results.
  2. When trying to uninstall search api exclude, either via drush or UI, throws me an error message and the uninstallation stop.
    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'sae_exclude' in 'where clause':
    SELECT 1 AS expression
    FROM {node_field_data} t
    WHERE sae_exclude IS NOT NULL
    LIMIT 1 OFFSET 0; Array

Steps to reproduce

  1. drush pmu search_api_exclude <-> admin/modules/uninstall
  2. click checkbox "Prevent...", save the setting, come back to edit the Node and the checkbox remain unchecked. Node still showing in the search results

Proposed resolution

I took as a template this patch , and I create a new hook update that creates the field in Database.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Merge Requests

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