We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949505f commit 30e6a9dCopy full SHA for 30e6a9d
src/graphql/resolvers/Procedure.js
@@ -128,7 +128,16 @@ export default {
128
129
searchProcedures: (parent, { term }, { ProcedureModel }) =>
130
ProcedureModel.find(
131
- { $text: { $search: term }, period: 19 },
+ {
132
+ $or: [
133
+ { procedureId: { $regex: term } },
134
+ { title: { $regex: term } },
135
+ { abstract: { $regex: term } },
136
+ { tags: { $regex: term } },
137
+ { subjectGroups: { $regex: term } },
138
+ ],
139
+ period: 19,
140
+ },
141
{ score: { $meta: 'textScore' } },
142
).sort({ score: { $meta: 'textScore' } }),
143
},
0 commit comments