laravel / scout

Laravel Scout provides a driver based solution to searching your Eloquent models.
https://laravel.com/docs/scout
MIT License
1.54k stars 327 forks source link

Searchable not sync to meilisearch with other index #809

Closed cuonglv31 closed 5 months ago

cuonglv31 commented 5 months ago

Scout Version

^10.3

Scout Driver

Meilisearch

Laravel Version

9

PHP Version

8.2

Database Driver & Version

Mysql 8.0

SDK Version

No response

Meilisearch CLI Version

No response

Description

In the model, I edited the searchable, but in the controller, I updated the value into the DB and synchronized via meilisearch with the command StampCode::query()->where("index", 1)->searchable();, Check meilisearch has no data with the revised index.

image

Steps To Reproduce

  1. StampCode model create func searchableAs
  2. StampCode Controller update item and sync to meilisearch StampCode::query()->where("index", 1)->searchable();
driesvints commented 5 months ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!