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
:summary: This guide covers how to use an Elasticsearch cluster using the low level or high level REST clients.
9
+
:summary: This guide covers how to use an Elasticsearch cluster using the low level REST client or the Java API client.
10
10
11
11
Elasticsearch is a well known full text search engine and NoSQL datastore.
12
12
13
13
In this guide, we will see how you can get your REST services to use an Elasticsearch cluster.
14
14
15
-
Quarkus provides two ways of accessing Elasticsearch: via the lower level `RestClient` or via the `RestHighLevelClient` we will call them
16
-
the low level and the high level clients.
15
+
Quarkus provides three ways of accessing Elasticsearch: via the lower level `RestClient`, via the high level `RestHighLevelClient`, or via the Java API client.
This command generates a Maven structure importing the RESTEasy Reactive/JAX-RS, Jackson, and the Elasticsearch low level client extensions.
40
39
After this, the `quarkus-elasticsearch-rest-client` extension has been added to your build file.
41
40
42
-
If you want to use the high level client instead, replace the `elasticsearch-rest-client` extension by the `elasticsearch-rest-high-level-client` extension.
41
+
If you want to use the Java API client instead, replace the `elasticsearch-rest-client` extension by the `elasticsearch-java-client` extension.
43
42
44
43
[NOTE]
45
44
====
@@ -66,21 +65,21 @@ For the Elasticsearch low level client, add:
Nothing fancy. One important thing to note is that having a default constructor is required by the JSON serialization layer.
104
103
105
104
Now create a `org.acme.elasticsearch.FruitService` that will be the business layer of our application and store/load the fruits from the Elasticsearch instance.
106
-
Here we use the low level client, if you want to use the high level client instead follow the instructions in the <<using-the-high-level-rest-client,Using the High Level REST Client>> paragraph instead.
105
+
Here we use the low level client, if you want to use the Java API client instead follow the instructions in the <<using-the-java-api-client,Using the Java API Client>> paragraph instead.
0 commit comments