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: {
|
bool: {
|
||||||
should: ["method", "logType", "endpoint", "host", "responseCode"].map(
|
should: [
|
||||||
(v) => ({
|
"method",
|
||||||
wildcard: { [v]: "*" + search + "*" },
|
"logType",
|
||||||
}),
|
"endpoint",
|
||||||
),
|
"host",
|
||||||
|
"responseCode",
|
||||||
|
"output",
|
||||||
|
].map((v) => ({
|
||||||
|
wildcard: { [v]: "*" + search + "*" },
|
||||||
|
})),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue