I'm experiencing an issue with Laravel Scout and Algolia: executing php artisan scout:import "App\Models\Product" results in the Algolia index first being cleared of all products before reimporting them.
Is there a method to reimport the products such that they overwrite the existing ones instead of clearing the index first?
I'm aiming to minimize the downtime of my search services linked to Algolia during product data or configuration updates.
I tried to fix this by developing a command to update products individually. But this approach proved to be inefficient due to its slow processing speed. Also, I found issues with Algolia, which raised complaints regarding the limitations on the number of individual updates.
Algolia's Scout Extended package includes a
scout:reimportcommand that does the zero downtime data replacement you're looking for: Zero Downtime Reimports.