Add a generic regex replace processor

Created on 15 November 2023, about 1 year ago
Updated 4 January 2024, 11 months ago

Problem/Motivation

As a SITE BUILDER I want a simple way to replace a given string in a field to be indexed with another string. For example, I have two different content types, landing_page and landing_page_legacy, which for the purposes of search I want to treat as one type. The simplest way for me to achieve this is to have occurrences of 'landing_page_legacy' type replaced with 'landing_page' before they are saved to the type field in the search index. Then all my facets and filters see only one content type.

Proposed resolution

Add a simple regex processor, which performs replacements on text fields before indexing, based on the one in search_api_solr , to this module.

Remaining tasks

Feature request
Status

Needs review

Version

7.0

Component

Code

Created by

🇵🇹Portugal dubois

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

Comments & Activities

Production build 0.71.5 2024