简体   繁体   English

Rackspace云文件容器的元数据搜索功能?

[英]Meta Data Search Functionality for Rackspace Cloud Files Container?

This is an Architectural question concerning the Rackspace Cloud Files. 这是有关Rackspace云文件的架构问题。 I've successfully added Cloud Files functionality (PHP/MySQL - Classes/Package) to one of my projects (domains) and would like to somehow provide search functionality for these files (PDF's, etc) to other projects (domains/subdomains). 我已经成功地将Cloud Files功能(PHP / MySQL - Classes / Package)添加到我的一个项目(域)中,并希望以某种方式为这些文件(PDF等)提供其他项目(域/子域)的搜索功能。 It doesn't seem like the Meta Data within the Cloud Files can be searched directly, without requesting all object information within the Container (not very efficient). 似乎不能直接搜索云文件中的元数据,而无需请求Container内的所有对象信息(效率不高)。

The PHP Cloud Files package does provide a way to search by file "prefix", but not thru a Meta Search. PHP Cloud Files包提供了一种按文件“前缀”搜索的方法,但不能通过元搜索进行搜索。 This prefix is what is typically used to create seudo-directories in your container. 此前缀通常用于在容器中创建seudo目录。

I'd like to search thru the Meta Data provided in the Cloud Files (efficiently). 我想通过云文件中提供的元数据进行搜索(高效)。 I may end up having several domains sharing a Cloud Files Container of files with Meta Data for each file. 我最终可能会为多个域共享一个包含元数据的文件的云文件容器。 Should I create an external MySQL database accessible from all the domains to manage the meta data search functionality for the Containers? 我是否应该创建可从所有域访问的外部MySQL数据库来管理容器的元数据搜索功能? Is there anything already created for this type of purpose? 是否已经为此类目的创建了任何内容?

Example Situation: A PDF is created at domain 1. PDF is written to the Cloud Files container. 示例情况:在域1中创建PDF .PDF将写入Cloud Files容器。 Meta Data includes a person's related information (Cloud Files Meta - Not PDF Meta). 元数据包括一个人的相关信息(Cloud Files Meta - Not PDF Meta)。 Domain 2 needs to search the shared Cloud Files Container by a person's identity and present all related files for that person. 域2需要通过人员的身份搜索共享的云文件容器,并呈现该人员的所有相关文件。

Thanks for any comments/help. 感谢您的任何意见/帮助。 Jeff Walters 杰夫沃尔特斯

I looked through the API as well and did not see any method to search the metadata. 我也查看了API,但没有看到任何搜索元数据的方法。 I would go with the MySQL solution for this project and store any the metadata you need in database. 我会使用这个项目的MySQL解决方案,并将您需要的所有元数据存储在数据库中。

I don't think there is already a solution built for this purpose, but it should be rather easy to build. 我不认为已经有为此目的而构建的解决方案,但它应该相当容易构建。 I do use S3 in several of my projects and track the objects with additional metadata in MySQL tables. 我在我的几个项目中使用S3,并使用MySQL表中的其他元数据跟踪对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM