Use the following SDKs and tools to integrate OpenSearch Industry Algorithm Edition into your application.
Quick reference
| Language | Install | Docs | Source |
|---|---|---|---|
| Java | Maven (see below) | — | — |
| PHP | See PHP SDK downloads | — | — |
| Go | go get github.com/aliyun/alibaba-cloud-sdk-go/tree/master/services/opensearch | — | — |
| Python (data) | pip install aliyun-python-sdk-opensearch | — | — |
| Python (management) | PyPI | — | GitHub |
Java SDK
OpenSearch SDK for Java covers data processing and searching. For application management operations, use the management SDKs instead.
Add the following dependency to your pom.xml:
<dependency>
<groupId>com.aliyun.opensearch</groupId>
<artifactId>aliyun-sdk-opensearch</artifactId>
<version>4.0.0</version>
</dependency>PHP SDK
OpenSearch SDK for PHP covers application management, data processing, and searching. For download instructions and source code, see PHP SDK downloads.
Go
Run the following command to install the Go SDK:
go get github.com/aliyun/alibaba-cloud-sdk-go/tree/master/services/opensearchPython SDKs
Two Python packages are available. Choose based on your use case:
| Package | Purpose |
|---|---|
aliyun-python-sdk-opensearch (pip) | Data processing and searching |
| OpenSearch management SDK for Python | Application lifecycle management |
Python SDK for data processing and searching
pip install aliyun-python-sdk-opensearchOpenSearch management SDK for Python
The management SDK handles application-level operations such as creating and managing OpenSearch applications.
SortScript
SortScript is a command-line tool for managing Cava-based sort scripts. It requires a Python version later than 2.7 and supports the full script lifecycle: create, maintain, publish, and delete.
For usage instructions, see Create sort scripts by using SortScript.