August 2019
Intermediate to advanced
560 pages
13h 41m
English
Basically, there are three major steps involved: REST client initialization, performing a request, and handling the response. Before we look at each step, let's take a closer look at the major methods of the org.elasticsearch.client.RestClient class described in the following table. It involves the REST client builder, performs a request, and closes operations:
|
Method |
Description |
|
public static RestClientBuilder builder(org.apache.http.HttpHost... hosts) |
Creates a new builder instance using a host or hosts to where the client will send the request. |
|
public void close() |
Closes the RestClient when it is no longer needed. |
|
public Response performRequest(Request request) |
Sends a request ... |
Read now
Unlock full access