diff --git a/src/structures/structures.service.ts b/src/structures/structures.service.ts index 6b37ea7e51b1150be0b7b273245906310bd7f0bb..f3a67fda7417dae1c685084bd05c8cd2500bfccc 100644 --- a/src/structures/structures.service.ts +++ b/src/structures/structures.service.ts @@ -23,7 +23,7 @@ export class StructuresService { } else { query = [{ $text: { $search: searchString } }]; } - return this.structureModel.find({ $and: query }).exec(); + return this.structureModel.find({ $or: query }).exec(); } /**