From c1cec784975b6bfe014c11251c7c2dca9491b239 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 15 Aug 2023 14:48:35 +0500 Subject: [PATCH] search refactor3 --- config/meilisearch.php | 15 --------------- config/scout.php | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 config/meilisearch.php diff --git a/config/meilisearch.php b/config/meilisearch.php deleted file mode 100644 index 381108b1a..000000000 --- a/config/meilisearch.php +++ /dev/null @@ -1,15 +0,0 @@ - [ - 'host' => env('MEILISEARCH_HOST', 'http://localhost:7700'), - 'key' => env('MEILISEARCH_KEY', null), - 'index-settings' => [ - \Webkul\Product\Models\ProductFlat::class => [ - 'filterableAttributes'=> ['locale', 'channel' ], - 'sortableAttributes' => ['created_at'], - // Other settings fields... - ], - - ], - ], -]; \ No newline at end of file diff --git a/config/scout.php b/config/scout.php index 0076f4c03..f13b96011 100644 --- a/config/scout.php +++ b/config/scout.php @@ -121,7 +121,7 @@ return [ 'index-settings' => [ \Webkul\Product\Models\ProductFlat::class => [ 'filterableAttributes'=> ['locale', 'channel' ], - 'sortableAttributes' => ['created_at'], + 'sortableAttributes' => ['name','created_at','min_price'], // Other settings fields... ],