update: search rootId
This commit is contained in:
parent
ed23b8690d
commit
9b9c9cc382
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ export class LogController extends Controller {
|
||||||
body: {
|
body: {
|
||||||
size: number;
|
size: number;
|
||||||
search?: string;
|
search?: string;
|
||||||
|
rootId?: string;
|
||||||
multiSearch?: string[];
|
multiSearch?: string[];
|
||||||
searchAfter?: number;
|
searchAfter?: number;
|
||||||
date?: Date;
|
date?: Date;
|
||||||
|
|
@ -54,6 +55,7 @@ export class LogController extends Controller {
|
||||||
bool: {
|
bool: {
|
||||||
must: [
|
must: [
|
||||||
...(systemName ? [{ match: { systemName } }] : []),
|
...(systemName ? [{ match: { systemName } }] : []),
|
||||||
|
...(!!body.rootId ? [{ match: { rootId: body.rootId } }] : []),
|
||||||
...(body.search
|
...(body.search
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
|
@ -65,6 +67,7 @@ export class LogController extends Controller {
|
||||||
"host",
|
"host",
|
||||||
"responseCode",
|
"responseCode",
|
||||||
"output",
|
"output",
|
||||||
|
"rootId",
|
||||||
].map((v) => ({
|
].map((v) => ({
|
||||||
wildcard: { [v]: "*" + body.search + "*" },
|
wildcard: { [v]: "*" + body.search + "*" },
|
||||||
})),
|
})),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue