The whole index gets cleared/deleted when any change in the search index configuration is imported/synced

Created on 28 October 2024, 26 days ago

Problem/Motivation

This issue is a copy of the related search_api_opensearch project issue at https://www.drupal.org/project/search_api_opensearch/issues/3285438 🐛 The whole index gets cleared/deleted when any change in the search index configuration is imported/synced Needs work

Having set up an index with lots of content, any minor update to the search index configuration deletes the whole index. I would expect the content in the index to be marked to be reindexed at most. Deleting everything would need a manual index trigger and also a downtime in search while the content is not fully indexed.

Steps to reproduce

- Create an index
- Index content
- Export the search index, make a minor change like changing a label etc
- Import the search index and all your indexed content will be cleared

Proposed resolution

Mark the content for reindexing but not delete/clear it completely.

Remaining tasks

Port the same patch from https://git.drupalcode.org/project/search_api_opensearch/-/merge_request... to this project.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇿New Zealand davidwhthomas

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