提交 9306b6ab 编写于 作者: W wanjunlei

change match_phrase_prefix to match_phrase

Signed-off-by: Nwanjunlei <wanjunlei@yunify.com>
上级 b5392b97
......@@ -361,7 +361,7 @@ func parseToQueryPart(f *auditing.Filter) interface{} {
}
if len(f.ObjectRefNamespaces) > 0 {
if bi := shouldBoolbody("match_phrase_prefix", "ObjectRef.Namespace.keyword",
if bi := shouldBoolbody("match_phrase", "ObjectRef.Namespace.keyword",
f.ObjectRefNamespaces, nil); bi != nil {
b.Filter = append(b.Filter, map[string]interface{}{"bool": bi})
}
......@@ -376,7 +376,7 @@ func parseToQueryPart(f *auditing.Filter) interface{} {
}
if len(f.Workspaces) > 0 {
if bi := shouldBoolbody("match_phrase_prefix", "Workspace.keyword",
if bi := shouldBoolbody("match_phrase", "Workspace.keyword",
f.Workspaces, nil); bi != nil {
b.Filter = append(b.Filter, map[string]interface{}{"bool": bi})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册