Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/Services/PluginServices/QueryPluginsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static function applySearchWeighted(
return $query
->where(fn($q) => $q
->where('slug', $search)
->orWhere('name', 'like', "$search%")
->orWhere('name', 'ilike', "$search%")
->orWhereRaw("slug %> ?", [$wordchars])
->orWhereRaw("name %> ?", [$wordchars])
->orWhereRaw("short_description %> ?", [$wordchars])
Expand All @@ -90,8 +90,8 @@ public static function applySearchWeighted(
CASE
WHEN slug = ? THEN 1000000
WHEN name = ? THEN 900000
WHEN slug LIKE ? THEN 800000
WHEN name LIKE ? THEN 700000
WHEN slug ILIKE ? THEN 800000
WHEN name ILIKE ? THEN 700000
WHEN slug %> ? THEN 600000
WHEN name %> ? THEN 500000
WHEN short_description %> ? THEN 400000
Expand Down
Loading