diff --git a/app/Models/Ngo.php b/app/Models/Ngo.php index d7df6b5..26cf220 100644 --- a/app/Models/Ngo.php +++ b/app/Models/Ngo.php @@ -65,6 +65,7 @@ public function toSearchableArray(): array return [ 'id' => $this->id, 'name' => Normalize::string($this->name), + 'description' => Normalize::string($this->description), 'county' => Normalize::string($this->county?->name), 'beneficiary' => Normalize::collection( $this->services diff --git a/config/scout.php b/config/scout.php index 9af91d1..fb53ed5 100644 --- a/config/scout.php +++ b/config/scout.php @@ -143,7 +143,7 @@ 'tntsearch' => [ 'storage' => storage_path('indexes'), //place where the index files will be stored - 'fuzziness' => env('TNTSEARCH_FUZZINESS', false), + 'fuzziness' => env('TNTSEARCH_FUZZINESS', true), 'fuzzy' => [ 'prefix_length' => 2, 'max_expansions' => 50,