From c72e48fd154565ae3103e62cdee6571b01dd45f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Buli=C5=84ski?= Date: Thu, 21 Sep 2023 13:38:11 +0200 Subject: [PATCH] search fix --- app/Criteria/ProductSearch.php | 1 - .../migrations/2023_09_19_195946_update_products_indexes.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Criteria/ProductSearch.php b/app/Criteria/ProductSearch.php index 7dbe8cf36..b548657c5 100644 --- a/app/Criteria/ProductSearch.php +++ b/app/Criteria/ProductSearch.php @@ -11,7 +11,6 @@ public function query(Builder $query): Builder { return $query->whereFullText([ 'name', - 'slug', 'description_html', 'description_short', 'search_values', diff --git a/database/migrations/2023_09_19_195946_update_products_indexes.php b/database/migrations/2023_09_19_195946_update_products_indexes.php index 6e6ab949c..fee28f9da 100644 --- a/database/migrations/2023_09_19_195946_update_products_indexes.php +++ b/database/migrations/2023_09_19_195946_update_products_indexes.php @@ -10,7 +10,7 @@ public function up(): void Schema::table('products', function (Blueprint $table): void { $table->dropFullText('products_search_values_fulltext'); $table->fullText( - ['search_values', 'slug', 'name', 'description_short', 'description_html'], + ['search_values', 'name', 'description_short', 'description_html'], 'products_fulltext', ); });