Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which nodejs library is for AWS opensearch client?

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?

like image 957
Joey Yi Zhao Avatar asked Sep 19 '25 17:09

Joey Yi Zhao


1 Answers

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.

like image 193
V Maharajh Avatar answered Sep 22 '25 07:09

V Maharajh