Author: buildbot
Date: Tue Jun 6 22:18:42 2017
New Revision: 1013549
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/elasticsearch.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/elasticsearch.html
==============================================================================
--- websites/production/camel/content/elasticsearch.html (original)
+++ websites/production/camel/content/elasticsearch.html Tue Jun 6 22:18:42
2017
@@ -85,7 +85,7 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2
id="ElasticSearch-ElasticSearchComponent">ElasticSearch
Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The
ElasticSearch component allows you to interface with an <a shape="rect"
class="external-link" href="http://elasticsearch.org"
rel="nofollow">ElasticSearch</a> server.</p><p>Maven users will need to add the
following dependency to their <code>pom.xml</code> for this component:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<div class="wiki-content maincontent"><h2
id="ElasticSearch-ElasticSearchComponent">ElasticSearch
Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The
ElasticSearch component allows you to interface with an <a shape="rect"
class="external-link" href="http://elasticsearch.org"
rel="nofollow">ElasticSearch</a> server. Maven users will need to add the
following dependency to their <strong><code>pom.xml</code></strong> for this
component:</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-elasticsearch</artifactId>
@@ -93,20 +93,20 @@
<!-- use the same version as your Camel core version -->
</dependency>
]]></script>
-</div></div><h3 id="ElasticSearch-URIformat">URI format</h3><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="ElasticSearch-URIFormat">URI Format</h3><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[elasticsearch://clusterName[?options]
]]></script>
-</div></div><div class="confluence-information-macro
confluence-information-macro-tip"><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>if you want to run against a local
(in JVM/classloader) ElasticSearch server, just set the clusterName value in
the URI to "local". See the <a shape="rect" class="external-link"
href="http://www.elasticsearch.org/guide/reference/java-api/client.html"
rel="nofollow">client guide</a> for more details.</p></div></div><h3
id="ElasticSearch-EndpointOptions">Endpoint Options</h3><p>The following
options may be configured on the ElasticSearch endpoint. All are required to be
set as either an endpoint URI parameter or as a header (headers override
endpoint properties)</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>name</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>descrip
tion</p></th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>operation</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>required, indicates the operation to
perform</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>indexName</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the name of the index to act
against</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>indexType</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the type of the index to act
against</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>ip</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the TransportClient remote host ip to use <strong>Camel
2.12</strong></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>port</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the TransportClient remote port to use (defaults to
9300) <strong>Camel 2.12</strong></p></td></tr><tr><td colspan="1" r
owspan="1" class="confluenceTd"><p>transportAddresses</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><span>comma separated list with
<em>ip:port</em> formatted remote transport addresses to use <strong>Camel
2.16</strong></span></p><p><span>Options <em>ip</em> and <em>port</em> must be
left blank for <em>transportAddresses</em> to be considered
instead</span>.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>consistencyLevel</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>the write consistency level to use with INDEX and BULK
<span>operations</span> (can be any of <span>ONE, QUORUM, ALL or
DEFAULT</span>) <strong>Camel 2.16</strong></p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>replicationType</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>the replication type to use with
INDEX<span> and BULK</span> operations (can be any of SYNC, ASYNC or DEFAULT)
<strong>Camel 2.16</strong></p><p><strong>From version
2.17 replicationType option has been removed, since from elasticsearch 2.0.0
the async replication has been removed.</strong></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>parent</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><span style="color:
rgb(34,34,34);">optionally used with INDEX operations for Elasticsearch <a
shape="rect" class="external-link"
href="https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child.html"
rel="nofollow">Parent-Child relationships</a> to specify the ID of the parent
record <strong>Camel 2.16.1 / 2.17.0</strong></span></p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><span>clientTransportSniff</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="color:
rgb(34,34,34);"><strong>From Camel 2.17 </strong>Define if the client is
allowed to sniff the rest of the cluster</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span>pathHome</
span></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><span
style="color: rgb(34,34,34);"><strong>From Camel 2.17.2  </strong>Define
the path.home property inside settings of ElasticSearch node. Default value is
<em>/usr/share/elasticsearch</em><br
clear="none"></span></p></td></tr></tbody></table></div><h3
id="ElasticSearch-MessageOperations">Message Operations</h3><p>The following
ElasticSearch operations are currently supported. Simply set an endpoint URI
option or exchange header with a key of "operation" and a value set to one of
the following. Some operations also require other parameters or the message
body to be set.</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>operation</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>message body</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>description</p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>IN
DEX</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Map, String,
byte[] or XContentBuilder content to index</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>adds content to an index and returns the content's
indexId in the body.</p><p><strong>Camel 2.15,</strong> you can set the <span
style="line-height: 1.4285715;">indexId by setting the message header with the
key "indexId".</span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>GET_BY_ID</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>index id of content to retrieve</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>retrieves the specified index and returns a
GetResult object in the body</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>DELETE</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>index id of content to delete</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>deletes the specified indexId and returns a
DeleteResult
object in the body</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p class="p1">BULK_INDEX</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>a <strong>List</strong> or
<strong>Collection</strong> of any type that is already accepted
(XContentBuilder, Map, byte[], String)</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.14, </strong>adds content to an index
and return a List of the id of the successfully indexed documents in
the body</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>BULK</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><span>a </span><strong>List</strong><span> or
</span><strong>Collection</strong><span> of any type that is already accepted
(XContentBuilder, Map, byte[], String)</span></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Camel 2.15:</strong> Adds content
to an index and returns the BulkResponse object in the body</p></td>
</tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>SEARCH</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Map or SearchRequest Object</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong><span> search
the content with the map of query string</span></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>MULTIGET</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>List of MultigetRequest.Item
object</p></td><td colspan="1" rowspan="1" class="confluenceTd"><strong>Camel
2.17:</strong><span> <span>retrieves the specified indexes, types etc. in
MultigetRequest and returns a MultigetResponse object in the
body</span></span></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>MULTISEARCH</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>List of SearchRequest object</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong><span>
<span>search for parameters spe
cified in MultiSearchRequest and returns a MultiSearchResponse object in the
body</span></span></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>EXISTS</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Index name as header</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong><span>
<span>Returns a Boolean object in the body</span></span></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">UPDATE</td><td colspan="1"
rowspan="1" class="confluenceTd"><span>Map, String, byte[] or XContentBuilder
content to update</span></td><td colspan="1" rowspan="1"
class="confluenceTd"><strong>Camel 2.17:</strong> Updates content to an index
<span>and returns the content's indexId in the
body.</span></td></tr></tbody></table></div><h3
id="ElasticSearch-IndexExample">Index Example</h3><p>Below is a simple INDEX
example</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><div class="confluence-information-macro
confluence-information-macro-tip"><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>if you want to run against a local
(in JVM/classloader) ElasticSearch server, just set
the <strong><code>clusterName</code></strong> value in the URI to
<strong><code>local</code></strong>. See the <a shape="rect"
class="external-link"
href="http://www.elasticsearch.org/guide/reference/java-api/client.html"
rel="nofollow">client guide</a> for more details.</p></div></div><h3
id="ElasticSearch-EndpointOptions">Endpoint Options</h3><p>The following
options may be configured on the ElasticSearch endpoint. All are required to be
set as either an endpoint URI parameter or as a header (headers override
endpoint properties)</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>Name</p><
/th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>operation</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Required.</p><p>The operation
to perform.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>indexName</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The name of the index.</p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>indexType</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The type of the index.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>ip</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>From <strong>Camel
2.12.</strong><strong><br
clear="none"></strong>The <strong><code>TransportClient</code></strong>
remote host IP address to use<strong>.</strong></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><
code>port</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>From <strong>Camel 2.12.</strong><strong><br
clear="none"></strong>The <strong><code>TransportClient</code></strong>
remote port to use (defaults
to <strong><code>9300</code></strong>)<strong>.</strong></p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>transportAddresses</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><span>From <strong>Camel
2.16.</strong><strong><br clear="none"></strong>Comma separated list with
<strong><code>IP:PORT</code></strong> formatted remote transport addresses to
use<strong>.</strong></span></p><p><span>Options <strong><code>IP</code></strong>
and <strong><code>PORT</code></strong> must be left blank
for <strong><code>transportAddresses</code></strong> to be considered
instead</span>.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>consistencyLevel</code></p></td><td colspan="1"
rowsp
an="1" class="confluenceTd"><p>From <strong>Camel 2.16.</strong><strong><br
clear="none"></strong>The write consistency level to use
with <strong><code>INDEX</code></strong>
and <strong><code>BULK</code></strong> operations.</p><p>Can be one
of:</p><ul><li><strong><code>ONE</code></strong></li><li><strong><code>QUORUM</code></strong></li><li><strong><code>ALL</code></strong></li><li><strong><code>DEFAULT</code></strong></li></ul></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>replicationType</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>From <strong>Camel
2.16.</strong><strong><br clear="none"></strong>The replication type to use
with <span><strong><code>INDEX</code></strong>
and </span><strong><code>BULK</code></strong> operations.</p><p>Can be one
of:</p><ul><li><strong><code>SYNC</code></strong></li><li><strong><code>ASYNC</code></strong></li><li><strong><code>DEFAULT</code></strong></li></ul><div
class="confluence-
information-macro confluence-information-macro-warning"><span class="aui-icon
aui-icon-small aui-iconfont-error
confluence-information-macro-icon"></span><div
class="confluence-information-macro-body">From <strong>Camel 2.17 </strong>the
option <strong><code>replicationType</code></strong> has been removed, as from
Elasticsearch 2.0.0 the <strong><code>async</code></strong> replication has
been removed.</div></div></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>parent</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><span style="color: rgb(34,34,34);">From <span
style="color: rgb(34,34,34);"><strong>Camel 2.16.1 /
2.17.0</strong></span></span></p><p><span style="color:
rgb(34,34,34);">Optionally used with <strong><code>INDEX</code></strong>
operations for Elasticsearch <a shape="rect" class="external-link"
href="https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child.html"
rel="nofollow">Parent-Child relationships</a> t
o specify the <strong><code>ID</code></strong> of the parent
record<strong>.</strong></span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><span><code>clientTransportSniff</code><br
clear="none"></span></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><span style="color: rgb(34,34,34);">From<strong> Camel
2.17 </strong></span></p><p><span style="color: rgb(34,34,34);">Define if the
client is allowed to sniff the rest of the cluster.</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><span><code>pathHome</code><br
clear="none"></span></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><span style="color: rgb(34,34,34);">From<strong> Camel
2.17.2  </strong></span></p><p><span style="color: rgb(34,34,34);">Define
the <strong><code>path.home</code></strong> property inside settings of
ElasticSearch node. </span><span style="color:
rgb(34,34,34);"> </span></p><p><span style="color: rgb(34,34,34);">Def
ault: <strong><code>/usr/share/elasticsearch</code></strong><br
clear="none"></span></p></td></tr></tbody></table></div><h3
id="ElasticSearch-MessageOperations">Message Operations</h3><p>The following
ElasticSearch operations are currently supported. Simply set an endpoint URI
option or an exchange header with
name <strong><code>operation</code></strong> and a value set to one of the
following. Some operations also require other parameters or the message body to
be set.</p><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>Operation</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Message body</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>INDEX</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong><code>Map</code>,
<code>String</code></strong>, <strong><code>byte[]</code></str
ong> or <strong><code>XContentBuilder</code></strong> content to
index.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Adds content
to an index and returns the
content's <strong><code>indexId</code></strong> in the
body.</p><p>From<strong> Camel 2.15</strong>: you can set the <span
style="line-height: 1.4285715;"><strong><code>indexId</code></strong> by
setting the message header with the key
"<strong><code>indexId</code></strong>".</span></p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>GET_BY_ID</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Index id of content to
retrieve.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Retrieves
the specified index and returns a <strong><code>GetResult</code></strong>
object in the body.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>DELETE</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Index id of content to
delete.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Deletes
the specified <strong><code>indexId</code></strong> and returns
a <strong><code>DeleteResult</code></strong> object in the
body.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>BULK_INDEX</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>A <strong><code>List</code></strong> or
<strong><code>Collection</code></strong> of any type that is already accepted
(<strong><code>Map</code>,
<code>String</code></strong>, <strong><code>byte[]</code></strong>
or <strong><code>XContentBuilder</code></strong>).</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>From <strong>Camel 2.14</strong>: Adds
content to an index and return a <strong><code>List</code></strong> of the
id's of the successfully indexed documents in the body.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>BULK</code></p></td><td
colspan="1" rowspan="
1"
class="confluenceTd"><p><span>A </span><span><strong><code>List</code></strong>
or </span><span><strong><code>Collection</code></strong> of any type that
is already accepted (<strong><code>Map</code>,
<code>String</code></strong>, <strong><code>byte[]</code></strong>
or <strong><code>XContentBuilder</code></strong>).</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>From <strong>Camel
2.15:</strong> Adds content to an index and returns
the <strong><code>BulkResponse</code></strong> object in the
body.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>SEARCH</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong><code>Map</code></strong> or <strong><code>SearchRequest</code></strong>
object.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>From
<strong>Camel 2.15:</strong><span> Search the content with
the <strong><code>Map</code></strong> or query string.</span></p></t
d></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>MULTIGET</code></p></td><td colspan="1"
rowspan="1"
class="confluenceTd"><p><span><strong><code>List</code></strong></span> of <strong><code>MultigetRequest.Item</code></strong>
object.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>From
<strong>Camel 2.17:</strong><span> <span>Retrieves the specified indexes type's
specified in <strong><code>MultigetRequest</code></strong> and returns
a <strong><code>MultigetResponse</code></strong> object in the
body.</span></span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>MULTISEARCH</code></p></td><td colspan="1"
rowspan="1"
class="confluenceTd"><p><span><strong><code>List</code></strong></span> of <strong><code>SearchRequest</code></strong>
object.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>From
<strong>Camel 2.17:</strong><span> <span>Search for parameters specified
in <strong><c
ode>MultiSearchRequest</code></strong> and returns
a <strong><code>MultiSearchResponse</code></strong> object in the
body.</span></span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>EXISTS</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Index name as a header.</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>From <strong>Camel 2.17:</strong><span>
<span>Returns a <strong><code>Boolean</code></strong> object in the
body.</span></span></p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>UPDATE</code></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><span><span><strong><code>Map</code>,
<code>String</code></strong>, <strong><code>byte[]</code></strong>
or <strong><code>XContentBuilder</code></strong></span> content to
update.</span></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>From
<strong>Camel 2.17:</strong> Updates content to an index <span>and return
s the content's <strong><code>indexId</code></strong> in the
body.</span></p></td></tr></tbody></table></div><h3
id="ElasticSearch-IndexExample">Index Example</h3><p>Below is a
simple <strong><code>INDEX</code></strong> example:</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[from("direct:index")
-.to("elasticsearch://local?operation=INDEX&indexName=twitter&indexType=tweet");
+
.to("elasticsearch://local?operation=INDEX&indexName=twitter&indexType=tweet");
]]></script>
</div></div><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[<route>
- <from uri="direct:index" />
+ <from uri="direct:index"/>
<to
uri="elasticsearch://local?operation=INDEX&indexName=twitter&indexType=tweet"/>
</route>
]]></script>
-</div></div><p>A client would simply need to pass a body message containing a
Map to the route. The result body contains the indexId created.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+</div></div><p>A client would simply need to pass a body message containing
a <strong><code>Map</code></strong> to the route. The result body contains
the <span><strong><code>indexId</code></strong></span> created:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[Map<String, String> map = new
HashMap<String, String>();
map.put("content", "test");
String indexId = template.requestBody("direct:index", map,
String.class);