All Products
Search
Document Center

OpenSearch:Release notes

Last Updated:Feb 06, 2023

Overview

OpenSearch SDK for Java encapsulates the API operations that are used for implementing features such as data processing and search. To implement other features, use Management and Control SDKs.

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

Compatibility

  • The V3.1.3 of OpenSearch SDK for Java differs greatly from the 2.1.x versions. The 2.1.x versions do not support standard applications.

  • The V3.1.3 and later of OpenSearch SDK for Java support advanced and standard applications.

  • Cross-application queries are supported.

  • In OpenSearch SDK for Java V3.1.3, sorting is not supported for scroll queries.

Updates

V4.0.0(2021-09-13)

  • The ReSearch::DISABLE parameter for the drop-down suggestion feature is added.

  • The URI for the drop-down suggestion feature is modified.

V3.9.0(2021-08-10)

  • The DocumentClient.push method is added to upload documents in the JSON array format.

V3.8.0(2021-08-02)

  • The com.aliyun.opensearch.tracer.ClientTracer method is added.

V3.7.0(2021-05-11)

  • The Management and Control API requests are deprecated in the 3.x.x versions.

V3.6.0( 2020-09-23)

  • The FinalDistinct clause is supported.

  • Custom query clauses are supported.

v3.5.1 Java SDK(2020-04-24)

  • Temporary Security Token Service (STS) tokens are supported.

  • The Rank.secondRankType parameter for the search feature is added. Valid values: EXPRESSION and CAVA_SCRIPT.

  • The userId and reSearch parameters for the drop-down suggestion feature are added. The reSearch parameter can be set to HOMONYM.

  • The SuggestParams class and the execute method for the drop-down suggestion feature are added.

  • The error that the number of drop-down suggestions is invalid is fixed.

  • The value of the reSearch parameter for the drop-down suggestion feature is modified from HOMONY to HOMONYM.

v3.5.0(2020-04-14)

  • Temporary Security Token Service (STS) tokens are supported.

  • The Rank.secondRankType parameter for the search feature is added. Valid values: EXPRESSION and CAVA_SCRIPT.

  • The userId and reSearch parameters for the drop-down suggestion feature are added. The reSearch parameter can be set to HOMONY.

  • The SuggestParams class and the execute method for the drop-down suggestion feature are added.

v3.4.1 Java SDK(2019-09-17)

  • Data collection 2.0 is supported.

  • HTTPS is supported.

  • The parameter passing issue in the A/B test is fixed.

V3.4.0(2019-08-23)

  • Data collection 2.0 is supported.

  • HTTPS is supported.

v3.3.0 Java SDK(2018-09-03)

  • The A/B test feature is supported.

  • The collection of behavioral data is supported.

  • The Maven dependency is available.

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

Version description

New features

V3.2.0 (2018-06-07)

<dependency>
  <groupId>com.aliyun.opensearch</groupId>
  <artifactId>aliyun-sdk-opensearch</artifactId>
  <version>3.2.0</version>
</dependency>
  • The drop-down suggestion feature is supported.

Version description

New features

  • Scroll queries support sorting based on a single field of the int type.

  • The switchTo method is added to the AppClient class to switch the versions of multiple applications at a time.

  • Cross-application queries are supported.

  • You can use an application name or ID to query or update the quotas of the application.

  • You can modify billing models and quotas for applications, such as specifications, storage capacity, and computing resources.

  • The drop-down suggestion feature is updated.

Fixed bug

  • After a response is received for a request, the request is closed. If the request is not closed and the response is in the GZIP format, the connection used by the request is still occupied instead of being returned to the connection pool. In this case, the connections in the connection pool will run out, which will cause the SDK to stop responding.

V3.1.3 (2017-04-14)

<dependency>
  <groupId>com.aliyun.opensearch</groupId>
  <artifactId>aliyun-sdk-opensearch</artifactId>
  <version>3.1.3</version>
</dependency>
  • Third-party dependencies are added to OpenSearch packages. To reduce dependency conflicts, all dependencies except slf4j-api are relocated in the OpenSearch packages.

  • The data format FULLJSON is supported.

  • The documents in the buffer are cleared regardless of whether a commit succeeds or fails. This reduces the ambiguity when you use the OpenSearch SDK or API.

  • The confirmation component for the drop-down suggestion feature is released and the SDK is available.