Author: buildbot
Date: Tue May 5 17:18:38 2015
New Revision: 950181
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 May 5 17:18:38
2015
@@ -102,7 +102,7 @@
<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>description</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></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>INDEX</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 d
elete</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">BULK</td><td colspan="1" rowspan="1"
class="confluenceTd"><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></td><td colspan="1" rowspan="1"
class="confluenceTd"><str
ong>Camel 2.15:</strong> Adds content to an index and returns the BulkResponse
object in the body</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">
+<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>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"
>rowspan="1" class="confluenceTd">transportAddresses</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">consistencyLevel</td><td colspan="1" rowspan="1"
>class="confluenceTd">the write consistency level to use with INDEX an
d BULK <span>operations</span> (can be any of <span>ONE, QUORUM, ALL or
DEFAULT</span>) <strong>Camel 2.16</strong></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">replicationType</td><td colspan="1"
rowspan="1" class="confluenceTd">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></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="confl
uenceTh"><p>description</p></th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p>INDEX</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">BULK</td><td colspan="1" rowspan="1"
class="confluenceTd"><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></td><td colspan="1" rowspan="1"
class="confluenceTd"><strong>Camel 2.15:</strong> Add
s content to an index and returns the BulkResponse object in the
body</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">
<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[from("direct:index")
.to("elasticsearch://local?operation=INDEX&indexName=twitter&indexType=tweet");
]]></script>