Author: buildbot
Date: Fri Jan 30 05:18:17 2015
New Revision: 938331
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 Fri Jan 30 05:18:17
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>Since 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 conten
t 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">a <strong>List</strong> or
<strong>Collection</strong> of any type that is already accepted
(XContentBuilder, Map, byte[], String)</td><td colspan="1" rowspan="1"
class="confluenceTd"><strong>Since Camel 2.14, </strong>adds content to an
index and return a List of the id of the successfully indexed
documents 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></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>Since 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 conten
t 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>Since 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><p><strong>Since Camel 2.15</strong>,  camel just
return the whole BulkResponse in the
body.</p></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>