diff --git a/lib/search.ts b/lib/search.ts index 655c8f8..ac9fea4 100644 --- a/lib/search.ts +++ b/lib/search.ts @@ -66,6 +66,9 @@ export async function searchResource( for (const tag of tags) { q = q.replaceAll(`#${tag}`, ""); } + if (!q.trim().length) { + q = "*"; + } } return await typesenseClient.collections("resources")