Closed itzikbenh closed 5 months ago
It does seem like I could bypass this by running this on each blog iteration:
Indexables::factory()->get( 'post' )->sync_manager->index_sync_queue();
Indexables::factory()->get( 'term' )->sync_manager->index_sync_queue();
However, it's not really documented, so not sure if this is a recommended way.
I realize I'm on an older version of this plugin and it's actually fixed. My apologies :).
Is your enhancement related to a problem? Please describe.
I have a multisite and would've been nice to use
switch_to_blog
to copy content across sites, but ElasticPress attempts to bulk index them to the index of the initial blog_id, which makes it not possible.Designs
Right now you're listening to the
shutdown
event to runindex_sync_queue
, maybe add a custom hook and let users trigger it, that way we can clear the queue in between blog switches.Describe alternatives you've considered
No response
Code of Conduct