You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the search plugin indexes all languages and uses the default locale as fallback language. In case a language is missing we don't want to have an entry in the search for that locale at all.
Proposed change: allow a fallback language in the plugin's settings and in case of 'none' skip any missing locales (i.e. do not create or update them).
Describe the Bug
Currently the search plugin indexes all languages and uses the default locale as fallback language. In case a language is missing we don't want to have an entry in the search for that locale at all.
payload/packages/plugin-search/src/utilities/syncDocAsSearchIndex.ts
Line 31 in c658022
Proposed change: allow a fallback language in the plugin's settings and in case of 'none' skip any missing locales (i.e. do not create or update them).
Link to the code that reproduces this issue
https://github.com/cbratschi/payload
Reproduction Steps
Use Payload with a couple of locales. Use the search plugin. All locales are populated in the database.
Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info
The text was updated successfully, but these errors were encountered: