What is the best practice using ElasticSearch from Java? For instance one can easily find documentation and examples for delete-by-query functionality using REST API. This is not the case for Java Transport Client.
The transport client allows to create a client that is not part of the cluster, but simply connects to one or more nodes directly by adding their respective addresses using addTransportAddress(org. elasticsearch. common.
The Java High-Level REST is built on top of the low-level client described above. It provides different API specific methods that accept objects as arguments and returns a response as an object, hence taking care of the request marshaling and response unmarshalling.
The best practice of using Elasticsearch from Java: Follow This
Nexts:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With