Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Can't I update the mapping with Laravel Scout? #277

Open
tronlinky opened this issue May 18, 2024 · 0 comments
Open

Why Can't I update the mapping with Laravel Scout? #277

tronlinky opened this issue May 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tronlinky
Copy link

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

@tronlinky tronlinky added the bug Something isn't working label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant