You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix auto index for larasearch find around line 25 in:
/vendor/larasearch/src/Iverberk/Larasearch/Observer.php
/**
* Model save event handler
*
* @param Model $model
*/
public function saved(Model $model)
{
if ($model::$__es_enable && $model->shouldIndex())
{
Queue::push('Iverberk\Larasearch\Jobs\ReindexJob', $this->findAffectedModels($model));
}
}
Change to:
/**
* Model save event handler
*
* @param Model $model
*/
public function saved(Model $model)
{
Queue::push('Iverberk\Larasearch\Jobs\ReindexJob', $this->findAffectedModels($model));
}
I add the
on my Product model.
Then I do a
Then I try to search via :
Why the index wasn't updated after save() to make 'Amazing' searchable ? Do I forgot to do something ?
Thank you.
The text was updated successfully, but these errors were encountered: