Java API vs REST

I want to create a web page that search data.
Should I use JAVA API to request data with elasticsearch? Or is it better to do it with REST?

The JAVA API has the advantage of better performance, but it does not matter so much, and it is a non-performance project.

how do you think about it??

Use the language specific APIs whenever they are available.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.