You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-24Lines changed: 6 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,10 @@ Compatibility
26
26
------------
27
27
Jest Version | Elasticsearch Version
28
28
--- | ---
29
-
\>= 2.0.0 | 2.0
30
-
0.1.0 - 1.0.0 | 1.0
31
-
<= 0.0.6 | < 1.0
29
+
\>= 5.0.0 | 5
30
+
\>= 2.0.0 | 2
31
+
0.1.0 - 1.0.0 | 1
32
+
<= 0.0.6 | < 1
32
33
33
34
Also see [changelog][changelog] for detailed version history.
34
35
@@ -38,27 +39,10 @@ Support and Contribution
38
39
All questions, bug reports and feature requests are handled via the [GitHub issue tracker][issuetracker] which also acts as the knowledge base. Please see the [Contribution Guidelines][contributing] for more information.
39
40
40
41
41
-
<aid="comparison"></a>Comparison to native API
42
-
---------------------
43
-
>There are several alternative clients available when working with ElasticSearch from Java, like Jest that provides a POJO marshalling mechanism on indexing and for the search results. In this example we are using the Client that is included in ElasticSearch. By default the client doesn't use the REST API but connects to the cluster as a normal node that just doesn't store any data. It knows about the state of the cluster and can route requests to the correct node but supposedly consumes more memory. For our application this doesn't make a huge difference but for production systems that's something to think about.
>So if you have several ES clusters running different versions, then using the native (or transport) client will be a problem, and you will need to go HTTP (and Jest is the main option I think). If versioning is not an issue, the native client will be your best option as it is cluster aware (thus knows how to route your queries and does not need another hop), and also moves some computation away from your ES cluster (like merging search results that will be done locally instead of on the data node).
>ElasticSearch does not have Java rest client. It has only native client comes built in. That is the gap. You can add security layer to HTTP but native API. That is why none of SAAS offerings can be used with native api.
0 commit comments