Skip to content

Search index queue#16644

Merged
brandonkelly merged 2 commits into4.15from
feature/cms-109-search-index-queue
Feb 6, 2025
Merged

Search index queue#16644
brandonkelly merged 2 commits into4.15from
feature/cms-109-search-index-queue

Conversation

@brandonkelly
Copy link
Copy Markdown
Member

@brandonkelly brandonkelly commented Feb 6, 2025

Description

Adds a new search index queue, which keeps track of elements/fields that need to be indexed.

When an element is saved, the new craft\services\Search::queueIndexElement() method will check if there is an existing job in the search queue for the given element/site, and if so, it will just update that job’s list of modified field handles. If not, it will create a new job.

When UpdateSearchIndex jobs are executed, the element will only actually be indexed if there’s a pending job in the search index queue. Otherwise it will bail immediately.

Related issues

@linear
Copy link
Copy Markdown

linear Bot commented Feb 6, 2025

[ci skip]
@brandonkelly brandonkelly merged commit 1b42f28 into 4.15 Feb 6, 2025
@brandonkelly brandonkelly deleted the feature/cms-109-search-index-queue branch February 6, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant