diff --git a/app/Profile.php b/app/Profile.php index bfc26fc3..9cfd99fb 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -75,4 +75,9 @@ public function typesenseQueryBy(): array "username" ]; } + + public function getTitleAttributeName(): string + { + return "username"; + } } diff --git a/app/Testing/ScoutFlush.php b/app/Testing/ScoutFlush.php index ccfcc563..137c12f0 100644 --- a/app/Testing/ScoutFlush.php +++ b/app/Testing/ScoutFlush.php @@ -40,6 +40,8 @@ public function runScoutFlush(): void "filter_by" => "mal_id:>0", "batch_size" => 500 ]); + + $typeSenseClient->deleteCollection($modelInstance->searchableAs()); } } }