diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index 452aef068f..f5a09b0160 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -301,7 +301,15 @@ export class SearchService { query: { bool: { must: [ - { wildcard: { "text": { value: `*${q}*` }, } }, + { + bool: { + should: [ + { wildcard: { "text": { value: `*${q}*` }, } }, + { simple_query_string: { fields:["text"], "query": q, default_operator: 'and', } }, + ], + minimum_should_match: 1, + }, + }, esFilter, ] },