From 6fa9c07a3286b86124df5476d245179cd82cf5d4 Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Wed, 1 Nov 2023 10:10:14 +0100 Subject: [PATCH] Include owner.name and title in search (#19) Ensures that matches in the human readable title and org name for each entry is matched against. --- site/src/app/filters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/app/filters.ts b/site/src/app/filters.ts index 19c2f93..22ccc38 100644 --- a/site/src/app/filters.ts +++ b/site/src/app/filters.ts @@ -35,7 +35,7 @@ export function filterApps(apps: NormalisedApp[], filters: Filters): NormalisedA } filters = normaliseFilters(filters); - const fuse = new Fuse(apps, { keys: ['owner', 'description', 'name', 'tags'] }); + const fuse = new Fuse(apps, { keys: ['owner.name', 'title', 'description', 'name', 'tags'] }); const results = fuse.search(filters.textSearch); return results.map((result) => result.item); }