谷歌驱动器添加元数据文件 [英] Google drive add meta data to file

查看:121
本文介绍了谷歌驱动器添加元数据文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用googledrive api来搜索文件。

I would like to use the googledrive api to search for files. I would like to add metadata to it.

    Example:

    File: computers1.pdf
    Brand: brand1

    File: computers2.pdf
    Brand: brand2

    File: computers3.doc
    Brand: brand2

正如您所看到的,文件名不是用于搜索某个品牌的有用信息。有很多文件,所以重命名它们都很难,有时一个文件可以有多个'品牌'。

As you can see the file names aren't usefull to search for a certain brand. There are many files so renaming them all is hard and sometimes a file can have multiple 'brands'.

有没有办法将自定义元数据添加到文件/索引谷歌。在这个例子中,它将从品牌获得所有文件:x。

Is there a way to add custom metadata to the file/index of google. In this example it would be to get all the files from brand: x.

推荐答案

目前,Drive API ,但我们理解你的用例,我们已经在考虑实施一些可以帮助你的东西。请继续关注!

This is not currently possible with the Drive API, but we understand your use case and we are already considering implementing something that will help you with that. Please stay tuned!

目前,您可能需要使用 description 字段来存储元数据并执行搜索。

For the moment, you might want to use the description field to store your metadata and perform searches on that.

另一个值得一提的事情是,Google云端硬盘会自动为PDF中的文本编制索引,因此您可以在搜索包含文件正文。

Another important thing to mention is that Google Drive will automatically index the text from PDFs, so you can already search for those values if they are included in the document body.

这篇关于谷歌驱动器添加元数据文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆