Skip to content

Commit

Permalink
improve search
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Aug 22, 2023
1 parent 6991e1b commit 4da587b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Models/Ngo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/scout.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4da587b

Please sign in to comment.