Align quick search with current financial directory while retaining historical records
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-13 21:14:25 +02:00
parent 1d52c3d8f4
commit 2f1ef2fdfc
2 changed files with 3 additions and 2 deletions
@@ -56,7 +56,7 @@ class GlobalSearchController extends Controller
if (! $service->installed()) {
return ['count' => 0, 'fetch' => fn ($offset, $limit) => []];
}
$query = $service->publicQuery()->select('p.id', 'v.payload')->selectRaw("v.payload->>'title' AS title");
$query = $service->catalogueQuery([])->select('p.id', 'v.payload')->selectRaw("v.payload->>'title' AS title");
foreach ($tokens as $token) {
$query->where(function ($match) use ($search, $token) {
$search->orFields($match, ["(v.payload->>'title')",