小编Sas*_*try的帖子

有没有办法在谷歌驱动器文件的属性中搜索?

我想搜索这样的文件,但出现异常。

query = "mimeType ='application/pdf' and properties has { key="+ "'" + agency + "'" +"and value contains"+ "'" + someValue + "'" + " and visibility='PUBLIC'} ";
request = service.files().list().setQ(query);
Run Code Online (Sandbox Code Playgroud)

我们需要按精确值搜索吗?

query = "mimeType ='application/pdf' and properties has { key="+ "'" + agency + "'" +"and value = "+ "'" + someValue + "'" + " and visibility='PUBLIC'} ";
request = service.files().list().setQ(query);
Run Code Online (Sandbox Code Playgroud)

第二个正在工作,但是否有支持通配符的功能?

java google-drive-api

2
推荐指数
1
解决办法
1070
查看次数

标签 统计

google-drive-api ×1

java ×1