This topic provides answers to some frequently asked questions about the Java APIs of Alibaba Cloud Elasticsearch.

Is Alibaba Cloud Elasticsearch compatible with open source Elasticsearch APIs?

Alibaba Cloud Elasticsearch supports RESTful APIs provided by open source Elasticsearch and provides a dedicated management API.
  • Alibaba Cloud Elasticsearch is fully compatible with the RESTful APIs provided by open source Elasticsearch. You can use the RESTful APIs to manage data in a cluster. For example, you can add documents, remove documents, modify documents, search for data, or configure aliases. For more information, see RESTful API.
  • Alibaba Cloud Elasticsearch provides a dedicated management API. You can call the API to implement operations that you can perform in the Alibaba Cloud Elasticsearch console. For example, you can create a cluster or configure an IP address whitelist for a cluster. For more information, see List of operations by function.

How do I configure the cluster.name parameter when I use Transport Client to access an Alibaba Cloud Elasticsearch cluster?

Set the cluster.name parameter to the ID of the cluster. You can obtain the ID from the Basic Information page of the cluster. For more information, see View the basic information of a cluster.

When I use Transport Client to access an Alibaba Cloud Elasticsearch cluster, the error message "NoNodeAvailableException" is displayed. What do I do?

The error message returned because Transport Client 5.5 or 5.6 is used. We recommend that you use Transport Client 5.3.3 to access an Alibaba Cloud Elasticsearch cluster. You can use Transport Client to access only Alibaba Cloud Elasticsearch V5.5 or V5.6 clusters. When you use Transport Client, set the client.transport.sniff parameter to false. For more information, see Transport Client (5.x).
Notice Transport Client falls into disuse in open source Elasticsearch 7.0. We recommend that you use Java REST clients. For more information about Java REST clients, see High Level REST Client (6.3.x), High Level REST Client (6.7.x), and Low Level REST Client (5.x).