Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
I have two collections 'Contact' and 'Post', when I use the search plugin and try to delete content with the same ID, only the last one is deleted and not the right one.
Describe the Bug
I have two collections 'Contact' and 'Post', when I use the search plugin and try to delete content with the same ID, only the last one is deleted and not the right one.
Results Page on init:
Elements with the same ID:
Search results after deleting 'Post' content:
Error when you click on the content:
Link to the code that reproduces this issue
https://github.com/ogaraud/payload-search-plugin-bug/tree/search-plugin-bug/test/_community
Reproduction Steps
(I use postgres db)
pnpm dev _community
Which area(s) are affected? (Select all that apply)
plugin: search
Environment Info