i am looking for a good Tutorial about GetRequest ,GetResponse and check Exists Field in JSON Data . I am using Elasticsearch 6.3.1 and Java 8.0 , i found this Page about Request and Response in Elasticsearch 6.0 , and some Functions are not compatible.
when i write this
GetResponse getResponse = client.get(getRequest);
it could not recognise it , instead asked me to changed it to
ActionFuture<GetResponse> getResponse = client.get(getRequest);
Why is that?
And How can i improve it to check an existing Json Data in Elasticsearch ,
to avoid sending the same Data twice into Elastic???
I am using REST ClientAPI Java to creat Index in Elasticsearch and feed it with Json Data ,
those Data should not be similar, therefore i am asking for help , any Idea to check the Data bevor sending??