简体   繁体   English

AWS S3'CloudSearch'

[英]AWS S3 'CloudSearch'

Gone through amazon SDK/documentation and there isn't a lot around programtically querying/searching for documents on S3 bucket. 通过Amazon SDK /文档已经一去不复返了,以编程方式查询/搜索S3存储桶上的文档并没有很多。 Sure, can get document by id/name but i want to have ability to search by other meta tags such as author. 当然,可以通过ID /名称获取文档,但是我希望能够通过其他元标记(例如作者)进行搜索。

Would appreciate some guidance and a specific example of a query being executed and not a local iteration once all documents or items have been pulled locally. 一旦所有文档或项目都已在本地拉出,就可以理解一些指导和正在执行的查询的特定示例,而不是本地迭代。

[…] there isn't a lot around programtically querying/searching for documents on S3 bucket. […]在S3存储桶上以编程方式查询/搜索文档周围没有很多东西。

Right. 对。 S3 is flat file storage, and doesn't provide a query interface. S3是平面文件存储,不提供查询界面。

[…] i want to have ability to search by other meta tags such as author. […]我希望能够通过其他元标记(例如作者)进行搜索。

This will need to be solved by your application logic. 这将需要由您的应用程序逻辑解决。 This is not built-in to S3. 这不是S3内置的。

For example, you can store the metadata about an S3 document/file in DynamoDB. 例如,您可以将有关S3文档/文件的元数据存储在DynamoDB中。 You query DynamoDB for the metadata, which includes a pointer to the file in S3. 您在DynamoDB中查询元数据,其中包括指向S3中文件的指针。

Unfortunately, if you already have a bunch of files in S3, you'll need to find a way to build that initial index of your data. 不幸的是,如果S3中已经有很多文件,则需要找到一种方法来建立数据的初始索引。

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

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