diff --git a/app/Profile.php b/app/Profile.php index bfc26fc..9cfd99f 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -75,4 +75,9 @@ class Profile extends JikanApiSearchableModel "username" ]; } + + public function getTitleAttributeName(): string + { + return "username"; + } } diff --git a/app/Testing/ScoutFlush.php b/app/Testing/ScoutFlush.php index ccfcc56..137c12f 100644 --- a/app/Testing/ScoutFlush.php +++ b/app/Testing/ScoutFlush.php @@ -40,6 +40,8 @@ trait ScoutFlush "filter_by" => "mal_id:>0", "batch_size" => 500 ]); + + $typeSenseClient->deleteCollection($modelInstance->searchableAs()); } } }