Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(plugin-search): allow doc sync filtering based on locale#14928

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
JarrodMFlesch wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromfix/search-plugin-indexes

Conversation

@JarrodMFlesch
Copy link
Contributor

Adds newfilterLocalesToSync that allows users to filter out locales to sync when indexing search documents.

An example use case: using the multi-tenant plugin, you can now (for example) add anenabledLocales field on the tenant collection. Then when the search plugin syncs/inserts documents, it will run thefilterLocalesToSync function and return only the locales that should be synced. In this example, thefilterLocalesToSync could take the doc argument and query the doc.tenant and return theenabledLocales from the associated tenant. This prevents empty indexes from being created for users with many locales enabled.

je3yk reacted with hooray emojije3yk reacted with rocket emoji
@github-actions
Copy link
Contributor

📦 esbuild Bundle Analysis for payload

This analysis was generated byesbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JarrodMFlesch

[8]ページ先頭

©2009-2025 Movatter.jp