Skip to content

Commit 878e766

Browse files
committed
fix(search): added partial word matching support
CLOSES: JOB-875
1 parent 643cb8a commit 878e766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search/search.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,9 @@ export class SearchService {
640640
}
641641
}
642642

643-
async search(query: string): Promise<SearchResult> {
643+
async search(raw: string): Promise<SearchResult> {
644644
try {
645+
const query = `*${raw}*`;
645646
const [projects, organizations, grants, grantsImpact, vcs] =
646647
await Promise.all([
647648
this.searchProjects(query),

0 commit comments

Comments
 (0)