Skip to content

Commit 5c985a0

Browse files
authored
Merge pull request #733 from topcoder-platform/TOP-2364
Additional fixes for PM-21
2 parents 013932e + fa97d66 commit 5c985a0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/services/ChallengeService.js

+1-11
Original file line numberDiff line numberDiff line change
@@ -458,17 +458,6 @@ async function searchChallenges(currentUser, criteria) {
458458

459459
let sortByProp = criteria.sortBy ? criteria.sortBy : "created";
460460

461-
// Add '.keyword' to the end of the sort by prop for certain fields
462-
// (TOP-2364)
463-
if(sortByProp == "updatedBy" ||
464-
sortByProp == "createdBy" ||
465-
sortByProp == "name" ||
466-
sortByProp == "type" ||
467-
sortByProp == "status") {
468-
469-
sortByProp = sortByProp + ".keyword";
470-
}
471-
472461
const sortOrderProp = criteria.sortOrder ? criteria.sortOrder : "desc";
473462

474463
const mustQuery = [];
@@ -717,6 +706,7 @@ async function searchChallenges(currentUser, criteria) {
717706
},
718707
};
719708

709+
logger.info(`ES Query: ${JSON.stringify(esQuery)}`)
720710
// Search with constructed query
721711
let docs;
722712
try {

0 commit comments

Comments
 (0)