Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 15, 2022
1 parent 8262ed9 commit 8e8ff6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scout.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,13 @@ use App\Models\Flight;
],
```

If the model underlying a given index is soft deletable and is included in the `index-settings` array, Scout will automatically include support for filtering on soft deleted models to that index.
If the model underlying a given index is soft deletable and is included in the `index-settings` array, Scout will automatically include support for filtering on soft deleted models on that index. If you have no other filterable or sortable attributes to define for a soft deletable model index, you may simple add an empty entry to the `index-settings` array for that model:

```php
'index-settings' => [
Flight::class => []
],
```

After configuring your application's index settings, you must invoke the `scout:sync-index-settings` Artisan command. This command will inform MeiliSearch of your currently configured index settings. For convenience, you may wish to make this command part of your deployment process:

Expand Down

0 comments on commit 8e8ff6a

Please sign in to comment.