From 8189813b4f060621d6ff9b1cb12a10ba149ac4fd Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:59:15 +0700 Subject: [PATCH] refactor: search cover more field --- src/controllers/log-controller.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/controllers/log-controller.ts b/src/controllers/log-controller.ts index 9cd5249..43ce6c3 100644 --- a/src/controllers/log-controller.ts +++ b/src/controllers/log-controller.ts @@ -53,11 +53,16 @@ export class LogController extends Controller { ? [ { bool: { - should: ["method", "logType", "endpoint", "host", "responseCode"].map( - (v) => ({ - wildcard: { [v]: "*" + search + "*" }, - }), - ), + should: [ + "method", + "logType", + "endpoint", + "host", + "responseCode", + "output", + ].map((v) => ({ + wildcard: { [v]: "*" + search + "*" }, + })), }, }, ]