Skip to content

Commit

Permalink
Fix infix for place search
Browse files Browse the repository at this point in the history
  • Loading branch information
blackshadev committed Jan 27, 2023
1 parent a3b01bf commit 557e4f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Models/Place.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function getCollectionSchema(): array
[
'name' => 'name',
'type' => 'string',
'infix' => true,
],
[
'name' => 'country',
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Places/TypesensePlaceFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function find(FindPlaceCommand $command): array
'q' => $command->keywords,
'sort_by' => sprintf('_eval(created_by:%d):desc,_text_match:desc', $command->userId),
'query_by' => implode(',', $model->typesenseQueryBy()),
'infix' => 'fallback'
'infix' => 'always'
]);

return Arrg::map(
Expand Down

0 comments on commit 557e4f2

Please sign in to comment.