Open tronlinky opened 3 months ago
I have changed the model mapping in config/elasticsearch.php in my Laravel Project, and clear the config cache. Then, I deleted my index and import the model again with the command as bellow
curl -XDELETE "http://localhost:9200/model_xxxxxxxxxxxxx?pretty" php artisan scout:import 'App\Model'
but I found that the mapping didn't change. I didn't know why, is there some kind of cache in elasticsearch or scout ?
if there someone know why is it happened ?
Ubuntu 22
Laravel v11.1 laravel-scout-elasticsearch": "^7.6" PHP8.2-FPM - Docker ES-PHP ^8.0 Elasticsearch 8.12.2 - Docker
I have changed the model mapping in config/elasticsearch.php in my Laravel Project, and clear the config cache. Then, I deleted my index and import the model again with the command as bellow
curl -XDELETE "http://localhost:9200/model_xxxxxxxxxxxxx?pretty" php artisan scout:import 'App\Model'
but I found that the mapping didn't change. I didn't know why, is there some kind of cache in elasticsearch or scout ?
if there someone know why is it happened ?
Laravel v11.1 laravel-scout-elasticsearch": "^7.6" PHP8.2-FPM - Docker ES-PHP ^8.0 Elasticsearch 8.12.2 - Docker