From 85d4f535eb9669878629a3a81f70708c1823276a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Carodej?= Date: Thu, 7 Apr 2022 15:04:31 +0200 Subject: [PATCH] tnt search tweaked --- config/scout.php | 6 +++--- resources/js/components/FilesView/MemberAvatar.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/scout.php b/config/scout.php index b9f4c66c..f5ef3306 100644 --- a/config/scout.php +++ b/config/scout.php @@ -88,12 +88,12 @@ return [ ], 'tntsearch' => [ - 'storage' => storage_path(), //place where the index files will be stored + 'storage' => storage_path(), // place where the index files will be stored 'fuzziness' => env('TNTSEARCH_FUZZINESS', true), 'fuzzy' => [ 'prefix_length' => 2, - 'max_expansions' => 500, - 'distance' => 3, + 'max_expansions' => 50, + 'distance' => 25, ], 'asYouType' => true, 'searchBoolean' => env('TNTSEARCH_BOOLEAN', true), diff --git a/resources/js/components/FilesView/MemberAvatar.vue b/resources/js/components/FilesView/MemberAvatar.vue index 5de0376e..0c1498c9 100644 --- a/resources/js/components/FilesView/MemberAvatar.vue +++ b/resources/js/components/FilesView/MemberAvatar.vue @@ -28,7 +28,7 @@ background: member.data.attributes.color ? member.data.attributes.color : '', }" > - + {{ letter }}