FIX: Delete related search data when record has been deleted. (PR #10159)

GitHub

Merged in https://github.com/discourse/discourse/commit/ecc799ab56a0e64668d347c2426b8501fe17b82c