The OpenSearch Java Client GitHub repo states that the Java Client is the replacement for the High Level Java Client.
https://github.com/opensearch-project/opensearch-java
I'm trying to create an index with this client, but can't find any way to actually set the mappings, and there are no examples.
RestClient restClient = RestClient
.builder(new HttpHost(host, port, scheme))
.build();
Transport transport = new RestClientTransport(restClient, new JacksonJsonpMapper());
OpenSearchClient client = new OpenSearchClient(transport);
CreateIndexRequest createIndexRequest = new CreateIndexRequest.Builder()
.index(index)
// What do I do here?
.build();
CreateIndexResponse response = client.indices().create(createIndexRequest);
This is using the OpenSearch Java Client, not the High Level Client.