gpt4 book ai didi

amazon-web-services - 全文搜索 DynamoDB

转载 作者:行者123 更新时间:2023-11-29 02:51:54 27 4
gpt4 key购买 nike

以下情况:

我为我的客户将元素存储在 DyanmoDb 中。 HashKey 是元素 ID,Range Key 是客户 ID。除了这些字段之外,我还存储了一个字符串数组 -> 标签(例如 ["Pets", "House"])和一个多行文本。

我想在我的应用程序中提供搜索功能,用户可以在其中键入自由文本或选择标签并获取所有相关元素。

在我看来,普通的数据库查询不是正确的解决方案。我在玩 CloudSearch,但我不确定这是否是正确的解决方案,因为每次用户添加标签时,索引都必须更新......

我希望你能给我一些提示。

最佳答案

DynamoDB is now integrated with Elasticsearch, enabling you to perform full-text queries on your data.

https://aws.amazon.com/about-aws/whats-new/2015/08/amazon-dynamodb-elasticsearch-integration/

DynamoDB 流用于使搜索索引保持最新。

关于amazon-web-services - 全文搜索 DynamoDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44291240/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com