[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail

fix(search): evict stale FTS row when an update clears all searchable fields master

The idempotent FTS sync returned early when buildFtsContent produced no content, skipping the delete. An update that cleared every searchable field therefore left the prior FTS row in place, so old terms kept matching through the search JOIN. Run the delete unconditionally and gate only the re-insert on content.


+32 -10
3 changed files