Skip to content

Commit 0f7856b

Browse files
author
James Cori
committed
Hotfix to search
1 parent 8379079 commit 0f7856b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function searchChallenges (currentUser, criteria) {
203203
}
204204

205205
if (criteria.name) {
206-
boolQuery.push({ match: { 'name': criteria.name } })
206+
boolQuery.push({ wildcard: { 'name': `*${criteria.name}*` } })
207207
}
208208
if (criteria.description) {
209209
boolQuery.push({ match: { 'description': criteria.description } })

0 commit comments

Comments
 (0)