哪个nodejs库适用于AWS OpenSearch客户端?
我计划使用AWS托管的OpenSearch
。我发现有两个库@AWS-SDK/CLIELT-OPENSEARCH和 @openSearch-Project/opensearch
。我想知道我应该使用哪一个。是否有很大的不同?
I am planning to use opensearch
hosted by AWS. I found there are two libraries @aws-sdk/client-opensearch and @opensearch-project/opensearch
. I wonder which one I should use. Are there meant to be very different?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们都对不同的事物有用。
您很可能对实际的OpenSearch功能感兴趣,例如将项目添加到索引,更新索引,搜索索引。在这种情况下,您将找到
@opensearch-project/opensearch
有用。如果您想获取有关已部署域的信息并管理它,则
@aws-sdk/client-opensearch
可能很有用。They're both useful for different things.
Most likely you're interested in the actual opensearch features, like adding items to the index, updating the index, searching against the index. In this case you'll find
@opensearch-project/opensearch
useful. These AWS docs are helpful if this is what you're digging into.If you're looking to get information about the deployed domain, and to manage it, then
@aws-sdk/client-opensearch
may be useful.