Skip to content
Discussion options

You must be logged in to vote

This is the use-case for the @payloadcms/plugin-search package.

It handles it by creating an extra collection and writing all the changes for the fields you have configured to be indexed on your collections. This gives you a single collection to query to that then relates to the matching documents.

The other alternative is to use a search service like Algolia or similar. We don't have an official plugin for this yet, but it can be handled in collection hooks and I'm sure there are exaxmples to be found.

Hopefully one of these options is good for your requirements. Let me know what you end up going with or if you have any feedback about othe plugin!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hdodov
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hdodov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants