Skip to content

Search index queue #16644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Search index queue #16644

merged 2 commits into from
Feb 6, 2025

Conversation

brandonkelly
Copy link
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

Copy link

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