From 8e8ff6aaf0dcacfa1b7a3f5e7386d660f7b760eb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 15 Dec 2022 09:39:12 -0600 Subject: [PATCH] wip --- scout.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scout.md b/scout.md index 673a786587..a391bf20c1 100644 --- a/scout.md +++ b/scout.md @@ -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: