Hello, we are migrating from the Java Rest High Level Client to the New Rest Client.
Currently, the java new rest client seems to support document create EndPoint only with _create.
I'm going to use _doc Endpoint to automatically specify the id of the document, but is there any way to create a document through that endpoint now or is there any additional plan in the fucure?
here is code sample
OK
CreateRequest createRequest = new CreateRequest.Builder<T>()
.index(targetIndex)
.id(indexId)
.document(document)
.build();
client.create(createRequest);
Endpoint is _create Failed
CreateRequest createRequest = new CreateRequest.Builder<T>()
.index(targetIndex)
.document(document)
.build();
client.create(createRequest);