Overview of SDK client features and frequently asked questions about OpenSearch SDK for Java.
Features
-
The DocumentClient class uploads documents. For more information, see DocumentClient.
-
The OpenSearch class creates OpenSearchClient objects. For more information, see OpenSearch.
-
The OpenSearchClient class creates SearcherClient objects. For more information, see OpenSearchClient.
-
The SearcherClient class sends query requests. For more information, see SearcherClient.
FAQ about OpenSearch SDK for Java
Timeout waiting for connection from pool
Error:
com.aliyun.opensearch.sdk.dependencies.org.apache.http.conn.ConnectionPoolTimeoutException:
Timeout waiting for connection from pool
Description: The default connection pool capacity in OpenSearch SDK for Java is 50 connections.
Use the following sample code to adjust the connection pool capacity:
import com.aliyun.opensearch.util.HttpClientManager;
// ...
HttpClientManager.setMaxConnections(100);
该文章对您有帮助吗?