Problem/Motivation

Drupal CMS needs the ability to mark a search index as needing reindexing. There's a convenient method for that, but it's not exposed as a config action.

Proposed resolution

Mark Index::reindex() as a config action. This is a one-line change with a core API that has been available since 10.3. Other methods of Index are already exposed as config actions, this would be a helpful one too.

Issue fork search_api-3547028

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Issue summary: View changes
phenaproxima’s picture

Status: Active » Needs review
borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, I think we can commit this as-is.

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Looks good, thanks a lot for the suggestion! (And thanks, Joris, for pinging me!)
Merging.

Side note: Seems like clear() and rebuildTracker() might then also be candidates, but don’t want to slow this down. We can always add those later if they seem useful, but might not be necessary in most cases.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

strykaizer’s picture