Skip to content

Commit

Permalink
Include owner.name and title in search (#19)
Browse files Browse the repository at this point in the history
Ensures that matches in the human readable title and org name for each
entry is matched against.
  • Loading branch information
trond-snekvik authored Nov 1, 2023
1 parent 0163ef3 commit 6fa9c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/app/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6fa9c07

Please sign in to comment.