Skip to main content
General · Revision #1

How do I re-build documents?

How do I re-build documents?

At times (especially during the development phase of a store build), it may be necessary to delete and documents and freshly index them. This process can be achieved using the following command:

php artisan aero:search:rebuild

Due to the nature of how this process runs, there will be a temporary period where there are no listings or products shown.

This can be circumvented by using the --swap option:

php artisan aero:search:rebuild --swap

This will aliases to ensure there is no downtime, it works by creating a new alias, rebuilding the data for that alias and only after it is complete swapping over to that alias. This means there will be no period where there are no listings or products shown.