This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 7ec89600fb4ec5f0266e58e349b282ed9ca298ae Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Feb 5 11:32:48 2018 +0100 CAMEL-12224 - Updated docs --- .../src/main/docs/elasticsearch-rest-component.adoc | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/components/camel-elasticsearch-rest/src/main/docs/elasticsearch-rest-component.adoc b/components/camel-elasticsearch-rest/src/main/docs/elasticsearch-rest-component.adoc index 3cd2919..2ddc1a1 100644 --- a/components/camel-elasticsearch-rest/src/main/docs/elasticsearch-rest-component.adoc +++ b/components/camel-elasticsearch-rest/src/main/docs/elasticsearch-rest-component.adoc @@ -1,13 +1,9 @@ [[elasticsearch-rest-component]] == Elastichsearch Rest Component -== Elastichsearch5 Rest Component -*Available as of Camel version 2.21* - - *Available as of Camel version 2.21* The ElasticSearch component allows you to interface with an -https://www.elastic.co/products/elasticsearch[ElasticSearch] 5.x API using the REST Client library. +https://www.elastic.co/products/elasticsearch[ElasticSearch] 6.x API using the REST Client library. Maven users will need to add the following dependency to their `pom.xml` for this component: @@ -16,7 +12,7 @@ for this component: ---- <dependency> <groupId>org.apache.camel</groupId> - <artifactId>camel-elasticsearch5-rest</artifactId> + <artifactId>camel-elasticsearch-rest</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency> @@ -26,7 +22,7 @@ for this component: [source] ---- -elasticsearch5-rest://clusterName[?options] +elasticsearch-rest://clusterName[?options] ---- @@ -165,14 +161,14 @@ Below is a simple INDEX example [source,java] ---- from("direct:index") - .to("elasticsearch5-rest://elasticsearch?operation=Index&indexName=twitter&indexType=tweet"); + .to("elasticsearch-rest://elasticsearch?operation=Index&indexName=twitter&indexType=tweet"); ---- [source,xml] ---- <route> <from uri="direct:index" /> - <to uri="elasticsearch5-rest://elasticsearch?operation=Index&indexName=twitter&indexType=tweet"/> + <to uri="elasticsearch-rest://elasticsearch?operation=Index&indexName=twitter&indexType=tweet"/> </route> ---- @@ -194,14 +190,14 @@ Pass in the query JSON String or the Map [source,java] ---- from("direct:search") - .to("elasticsearch5-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet"); + .to("elasticsearch-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet"); ---- [source,xml] ---- <route> <from uri="direct:search" /> - <to uri="eelasticsearch5-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet"/> + <to uri="eelasticsearch-rest://elasticsearch?operation=Search&indexName=twitter&indexType=tweet"/> </route> ---- @@ -226,4 +222,4 @@ Map<String, Object> query = new HashMap<>(); query.put("query", match); SearchHits response = template.requestBody("direct:search", query, SearchHits.class); ----- \ No newline at end of file +---- -- To stop receiving notification emails like this one, please contact acosent...@apache.org.