Hello ,
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
when do you get the NPE (after which command, I don't think constructing the builders and the client will trigger it?) and how does it look like? Can you please attach a Stacktrace?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.