Last active
April 6, 2020 13:24
-
-
Save erdemoflaz/db84ae623a46265074f89d16f20486b6 to your computer and use it in GitHub Desktop.
elastic update commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan elastic:drop-index 'App\Scout\ProductIndexConfigurator' && | |
php artisan elastic:create-index 'App\Scout\ProductIndexConfigurator' && | |
php artisan scout:import 'App\Product' && | |
php artisan elastic:drop-index 'App\Scout\TagIndexConfigurator' && | |
php artisan elastic:create-index 'App\Scout\TagIndexConfigurator' && | |
php artisan scout:import 'App\Tag' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOT!!!!! yazdığın mapping veya analyzer gibi ayarlardaki değişiklik elastic'i migrate etmene engel olacak olursa drop-index ile riske atma, önce güncelleme komutlarını dene.
php artisan elastic:update-index 'App\Scout\ProductIndexConfigurator' &&
php artisan scout:import 'App\Product' &&
php artisan elastic:update-index 'App\Scout\TagIndexConfigurator' &&
php artisan scout:import 'App\Tag'