Skip to content

Search by skill IDs #706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix match_phrase usage
  • Loading branch information
jmgasper committed Dec 22, 2023
commit dc983037438ebebe52430ff48ca20b765e78fb24
2 changes: 1 addition & 1 deletion src/services/ChallengeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ async function searchChallenges(currentUser, criteria) {
const skillQuery=[]
const matchPhrase = {};
matchPhrase[`skills.id`] = `${skillId}`;
skillQuery.push(matchPhrase)
skillQuery.push({"match_phrase":matchPhrase})

boolQuery.push({
bool:{
Expand Down