diff --git a/src/controllers/log-controller.ts b/src/controllers/log-controller.ts index 7e1d7a7..4a5ede5 100644 --- a/src/controllers/log-controller.ts +++ b/src/controllers/log-controller.ts @@ -49,14 +49,11 @@ export class LogController extends Controller { ? [ { bool: { - should: [ - { - multi_match: { - query: search, - fields: ["method", "logType", "endpoint", "host", "responseCode"], - }, - }, - ], + should: ["method", "logType", "endpoint", "host", "responseCode"].map( + (v) => ({ + wildcard: { [v]: "*" + search + "*" }, + }), + ), }, }, ]