camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r939650 - in /websites/production/camel/content: cache/main.pageCache elasticsearch.html
Date Tue, 10 Feb 2015 06:19:05 GMT
Author: buildbot
Date: Tue Feb 10 06:19:05 2015
New Revision: 939650

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 Feb 10 06:19:05 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"><p>a&#160;<strong>List</strong>&#160;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&#160;List of the id&#160;of
the successfully indexed documents in the body</p><p><strong>Since Camel
2.15</strong>,&#160; 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">
+<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&#160;<strong>List</strong>&#160;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&#160;List of the id&#160;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&#160;</span><strong>List</strong><span>&#160;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">
 <script class="theme: Default; brush: java; gutter: false" 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