Fixes https://github.com/payloadcms/payload/issues/9612 Previously, the plugin search with different collections but the same IDs could delete a wrong search document on synchronization, because we queried the search document only by `doc.value`. Instead, we should also query by `doc.relationTo`.
Payload Search Plugin
A plugin for Payload to generate records of your documents that are extremely fast to search on.