refactor: search cover more field
This commit is contained in:
parent
e04f40c58e
commit
8189813b4f
1 changed files with 10 additions and 5 deletions
|
|
@ -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 + "*" },
|
||||
})),
|
||||
},
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue