diff --git a/app/Producers.php b/app/Producers.php index f46216d..dd5441c 100644 --- a/app/Producers.php +++ b/app/Producers.php @@ -72,6 +72,33 @@ class Producers extends JikanApiSearchableModel ]; } + public function getCollectionSchema(): array + { + return [ + 'name' => $this->searchableAs(), + 'fields' => [ + [ + 'name' => '.*', + 'type' => 'auto', + ], + [ + 'name' => 'titles', + 'type' => 'string', + 'optional' => false, + 'infix' => true, + 'sort' => true + ], + [ + 'name' => 'url', + 'type' => 'string', + 'optional' => false, + 'infix' => true, + 'sort' => true + ], + ] + ]; + } + public function typesenseQueryBy(): array { return [