Open JasonBarnabe opened 10 months ago
This seems related to #1216 You can also check the discussion under #1215
Please check #1258 and see if it resolves the issue for you.
As per @akostadinov's great work, this should now be covered by ThinkingSphinx::Processor.new(instance: self).sync
- it'll update records if they're still within the scope, or otherwise delete them.
… and this is part of v5.6.0 which has just been released!
With a real-time index, I can provide a
scope
to filter out records I don't want indexed:and
So I need separate logic on update to filter out things I don't want indexed. Closest I can find is this info in callbacks...
However this is changing what records are updated in Sphinx and not what records are in Sphinx. Specifically, if a record previously had
indexing?
returntrue
, but now after an update returnsfalse
, the logic provided just means that no update will be sent to Sphinx (and it will remain in Sphinx), not that the record will be removed in Sphinx.How do I remove a record from Sphinx on an update with a callback? Or am I thinking about this wrong?