All Products
Search
Document Center

OpenSearch:SDK overview

Last Updated:Feb 06, 2023

Official support

1. Traffic SDKs

OpenSearch provides Traffic SDKs in the following programming languages: Java, PHP, Go, Python, C#, and TypeScript. You can use these SDKs to push data, search information, and obtain search guidance.

Programming language

Reference

Java

Java SDK

PHP

PHP SDK

Go

Go SDK

Python

Python SDK

C#

C# SDK

TypeScript

TypeScript SDK

2. Management and Control SDKs

Note: Management and Control SDKs do not support Traffic API operations, such as the operations of 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 common 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.