All Products
Search
Document Center

OpenSearch:SDK overview

Last Updated:Feb 23, 2023

Official support

1. Traffic SDKs

OpenSearch provides Traffic SDKs in six programming languages: Java, PHP, Go, Python, C#, and TypeScript. Traffic SDKs support features such as data push, data query, and search guidance.

Programming language

Reference

Java

SDK for Java

PHP

SDK for PHP

Go

SDK for Go

Python

SDK for Python

C#

SDK for C#

TypeScript

SDK for TypeScript

2. Management and Control SDKs

Note: Management and Control SDKs do not support Traffic API operations, such as those for searching, drop-down suggestions, document push, and data collection.

1. Java:

<dependency>
    <groupId>com.aliyun</groupId>
    <artifactId>aliyun-java-sdk-opensearch</artifactId>
    <version>0.11.0</version>
</dependency>

Core:

<dependency>
  <groupId>com.aliyun</groupId>
  <artifactId>aliyun-java-sdk-core</artifactId>
  <version>4.5.20</version>
</dependency>

2. Go:

go get github.com/aliyun/alibaba-cloud-sdk-go/tree/master/services/opensearch

3. Python:

pip install aliyun-python-sdk-opensearch

4. PHP:

composer require alibabacloud/opensearch

Custom development

The frequently used API operations of OpenSearch are defined in the OpenSearch API repository in compliance with Swagger 2.0. You can use Swagger Codegen to generate client code in more than 50 programming languages.