perf:Stored command records in ES support accurate searching.

This commit is contained in:
gerry
2025-04-11 15:42:55 +08:00
committed by feng626
parent ee97e45cc3
commit 3d6d2af268
2 changed files with 52 additions and 16 deletions

View File

@@ -27,8 +27,8 @@ class CommandStore(ES):
"type": "long"
}
}
exact_fields = {}
match_fields = {'input', 'risk_level', 'user', 'asset', 'system_user'}
exact_fields = {'input', 'risk_level', 'user', 'asset', 'account'}
match_fields = {'input'}
keyword_fields = {'session', 'org_id'}
super().__init__(config, properties, keyword_fields, exact_fields, match_fields)