camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1013593 - in /websites/production/camel/content: cache/main.pageCache elasticsearch.html
Date Wed, 07 Jun 2017 18:19:07 GMT
Author: buildbot
Date: Wed Jun  7 18:19:06 2017
New Revision: 1013593

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 Wed Jun  7 18:19:06 2017
@@ -96,7 +96,7 @@
 </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&#160;<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&#160;<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&#160;<strong><code>TransportClient</code></strong>
remote port to use (defaults to&#160;<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&#160;<strong><code>IP</code></strong>
and&#160;<strong><code>PORT</code></strong> must be left blank
for&#160;<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&#160;<strong><code>INDEX</code></strong>
and&#160;<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&#160;<span><strong><code>INDEX</code></strong>
and&#160;</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&#160;<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&#160;<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&#160; </strong></span></p><p><span style="color:
rgb(34,34,34);">Define the&#160;<strong><code>path.home</code></strong>
property inside settings of ElasticSearch node. </span><span style="color: rgb(34,34,34);">&#160;</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&#160;<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>,&#160;<strong><code>byte[]</code></str
 ong> or&#160;<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&#160;<strong><code>indexId</code></strong>
in the body.</p><p>From<strong> Camel 2.15</strong>: you can set the&#160;<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&#160;<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&#160;<strong><code>indexId</code></strong> and returns
a&#160;<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>,&#160;<strong><code>byte[]</code></strong>
or&#160;<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&#160;<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&#160;</span><span><strong><code>List</code></strong>
or&#160;</span><span><strong><code>Collection</code></strong>
of any type that is already accepted (<strong><code>Map</code>, <code>String</code></strong>,&#160;<strong><code>byte[]</code></strong>
or&#160;<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&#160;<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>&#160;or&#160;<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&#160;<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>&#160;of&#160;<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&#160;<strong><code>MultigetRequest</code></strong>
and returns a&#160;<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>&#160;of&#160;<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&#160;<strong><c
 ode>MultiSearchRequest</code></strong> and returns a&#160;<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&#160;<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>,&#160;<strong><code>byte[]</code></strong>
or&#160;<strong><code>XContentBuilder</code></strong></span>&#160;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&#160;<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&#160;<strong><code>INDEX</code></strong>
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&#160;<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&#160;<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&#160;<strong><code>TransportClient</code></strong>
remote port to use (defaults to&#160;<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&#160;<strong><code>IP</code></strong>
and&#160;<strong><code>PORT</code></strong> must be left blank
for&#160;<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&#160;<strong><code>INDEX</code></strong>
and&#160;<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&#160;<span><strong><code>INDEX</code></strong>
and&#160;</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"><p>From
<strong>Camel 2.17 </strong>the option <strong><code>replicationType</code></strong>
has been removed, as the <strong><code>async</code></strong> replication
was removed in Elasticsearch 2.0.0.</p></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&#160;<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&#160;<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&#160; </strong></span></p><p><span style="color:
rgb(34,34,34);">Define the&#160;<strong><code>path.home</code></strong>
property inside settings of ElasticSearch node. </span><span style="color: rgb(34,34,34);">&#160;</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&#160;<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>,&#160;<strong><code>byte[]</code></str
 ong> or&#160;<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&#160;<strong><code>indexId</code></strong>
in the body.</p><p>From<strong> Camel 2.15</strong>: you can set the&#160;<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&#160;<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&#160;<strong><code>indexId</code></strong> and returns
a&#160;<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>,&#160;<strong><code>byte[]</code></strong>
or&#160;<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&#160;<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&#160;</span><span><strong><code>List</code></strong>
or&#160;</span><span><strong><code>Collection</code></strong>
of any type that is already accepted (<strong><code>Map</code>, <code>String</code></strong>,&#160;<strong><code>byte[]</code></strong>
or&#160;<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&#160;<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>&#160;or&#160;<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&#160;<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>&#160;of&#160;<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&#160;<strong><code>MultigetRequest</code></strong>
and returns a&#160;<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>&#160;of&#160;<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&#160;<strong><c
 ode>MultiSearchRequest</code></strong> and returns a&#160;<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&#160;<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>,&#160;<strong><code>byte[]</code></strong>
or&#160;<strong><code>XContentBuilder</code></strong></span>&#160;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&#160;<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&#160;<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(&quot;direct:index&quot;)
   .to(&quot;elasticsearch://local?operation=INDEX&amp;indexName=twitter&amp;indexType=tweet&quot;);
 ]]></script>



Mime
View raw message