Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ElasticSearch HTTP client vs Transport client

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.

  1. Where can I find usage examples for Java Transport Client ?
  2. Does Java Transport Client cover whole ElasticSearch functionality like HTTP client via REST API?
like image 870
yurko Avatar asked May 30 '16 12:05

yurko


People also ask

What is transport client Elasticsearch?

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.

What is Java High Level REST client?

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.


1 Answers

The best practice of using Elasticsearch from Java: Follow This

Nexts:

  1. You can follow the library : JEST
  2. Yes, in maximum time, Java Transport Client cover whole ElasticSearch functionality like HTTP client via REST API
like image 136
sunkuet02 Avatar answered Nov 15 '22 05:11

sunkuet02