In our project, we communicated with elastic search by using the API which is recommended in elastic search website. But now we are working in spring based elastic search which contains different handling experience.
May i know the advantage of that spring data elastic search and let me know why it is implemented
Spring data was designed AFAIK to simplify access to the data.
Basically you don't need to write an elasticsearch query but just create an interface which has the right method names.
I never used it though. Too much magic.