弹性搜索中具有两个不同字段的搜索查询

Search query with two different fields in elasticsearch

我需要在 elasticsearch 中搜索

select * from tablename where file.content='xyz' and filePermission.Id='abc'  

我需要添加什么查询。是否可以为搜索查询提供过滤器?我已将 file.content 设置为默认字段。

AND SQL 查询可以写成 "must bool query":

{
    "query" : {
        "bool" : {
            "must" : [
                { "match" : { "file.content":"xyz"} },
                { "match" : { "filePermission.Id" : "abc"} }
            ]
        }
    }
}