i am trying to get index from ES using java ,
below is the code which i have used, but i am getting null values to getrequest obj ,then its throwing null pointer exception
RestHighLevelClient restHighLevelClient = new RestHighLevelClient(RestClient.builder(
new HttpHost(eshost, esport)));
GetRequest getRequest = new GetRequest("jsonvalidation"); // jsonvalidation is my index name
please help me with correct code to retrive the index
Thanks for help inadvance..!!