NetApp announces intent to acquire Instaclustr Read the announcement
Connecting to OpenSearch with Java

There are a few ways to write Java client for OpenSearch. Here we are using Java High-Level REST Client. Make sure you have Java 1.8 or higher version. In order to use Java High-Level REST Client, you need to add the following dependencies to the project.

  1. Authentication to OpenSearch Cluster
  2. Connect to cluster
  3. Indexing
  4. Getting a document

Full sample code

By Instaclustr Support
Need Support?
Experiencing difficulties on the website or console?
Already have an account?
Need help with your cluster?
Contact Support
Why sign up?
To experience the ease of creating and managing clusters via the Instaclustr Console
Spin up a cluster in minutes