From e192d5d89d70fe223c223972e35a9a63de28ca9f Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Wed, 18 Sep 2024 14:05:56 +0300 Subject: [PATCH] remove material url from typesens --- app/Models/Material.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Models/Material.php b/app/Models/Material.php index 0a4bb40..e34390f 100644 --- a/app/Models/Material.php +++ b/app/Models/Material.php @@ -50,7 +50,6 @@ public function toSearchableArray(): array return [ 'id' => (string) $this->id, 'name' => $this->name, - 'url' => (string) $this->url, 'categories' => $this->categories->pluck('name'), 'created_at' => $this->created_at->timestamp, ]; @@ -69,10 +68,6 @@ public static function getTypesenseModelSettings(): array 'name' => 'name', 'type' => 'string', ], - [ - 'name' => 'url', - 'type' => 'string', - ], [ 'name' => 'categories', 'type' => 'string[]',