add an API for either getting tracked IDs, or updating/deleting tracked items by pattern

Created on 31 May 2024, 3 months ago

Problem/Motivation

There is currently no API for the tracker for working with search item IDs where the caller does not know the exact IDs but only a pattern.

The use case is the Recurring Date Field integration module ( https://www.drupal.org/project/date_recur_search_api ), which creates search items whose IDs are based on dynamic date occurrences (see https://git.drupalcode.org/project/date_recur_search_api/-/blob/1.0.x/sr...).

To update or delete items, the code would either need SearchAPI to provide one of:

- an API to update and delete items based on a regex pattern, such as 'ENTITY_ID:LANGCODE:.*'
- an API to get the list of ALL tracked IDs, so the caller can then do its own regex search on the list of IDs.

The code currently has to directly query the {search_api_item} table, which is not ideal: https://git.drupalcode.org/project/date_recur_search_api/-/blob/1.0.x/sr...

Steps to reproduce

Proposed resolution

Remaining tasks

Feature request
Status

Active

Version

1.0

Component

Framework

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024