Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF56F180E2 for ; Sat, 26 Dec 2015 12:19:59 +0000 (UTC) Received: (qmail 24442 invoked by uid 500); 26 Dec 2015 12:19:59 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 24391 invoked by uid 500); 26 Dec 2015 12:19:59 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 24382 invoked by uid 99); 26 Dec 2015 12:19:59 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Dec 2015 12:19:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2532CC427C for ; Sat, 26 Dec 2015 12:19:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id unPScc6f5mA2 for ; Sat, 26 Dec 2015 12:19:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 9F995429D5 for ; Sat, 26 Dec 2015 12:19:49 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2BAF3E0428 for ; Sat, 26 Dec 2015 12:19:49 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 2AF4F3A024F for ; Sat, 26 Dec 2015 12:19:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r976419 - in /websites/production/camel/content: cache/main.pageCache elasticsearch.html Date: Sat, 26 Dec 2015 12:19:49 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151226121949.2AF4F3A024F@svn01-us-west.apache.org> Author: buildbot Date: Sat Dec 26 12:19:48 2015 New Revision: 976419 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 Sat Dec 26 12:19:48 2015 @@ -96,7 +96,7 @@

URI format

-

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 client guide for more details.

Endpoint Options

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)

name

descrip tion

operation

required, indicates the operation to perform

indexName

the name of the index to act against

indexType

the type of the index to act against

ip

the TransportClient remote host ip to use Camel 2.12

port

the TransportClient remote port to use (defaults to 9300) Camel 2.12

transportAddresses

comma separated list with ip:port formatted remote transport addresses to use Camel 2.16

Options ip and port must be left blank for transportAddresses to be considered instead.

consistencyLevel

the write consistency level to use with INDEX and BULK operations (can be any of ONE, QUORUM, ALL or DEFAULT) Camel 2.16

replicationType

the replication type to use with INDEX and BULK operations (can be any of SYNC, ASYNC or DEFAULT) Camel 2.16

From version 2.17 replicationType option has been removed, since from elasticsearch 2.0.0 the async replication has been removed.

parent

optionally used with INDEX operations for Elasticsearch Parent-Child relationships to specify the ID of the parent record Camel 2.16.1 / 2.17.0

clientTransportSniff

From Camel 2.17 Define if the client is allowed to sniff the rest of the cluster

Message O perations

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.

operation

message body

description

INDEX

Map, String, byte[] or XContentBuilder content to index

adds content to an index and returns the content's indexId in the body.

Camel 2.15, you can set the indexId by setting the message header with the key "indexId".

GET_BY_ID

index id of content to retrieve

retrieves the specified index and returns a GetResult object in the body

DELETE

index id of content to delete

deletes the specified indexId and returns a DeleteResult object in the body

BULK_INDEX

List or Collection of any type that is already accepted (XContentBuilder, Map, byte[], String)

< strong>Camel 2.14, adds content to an index and return a List of the id of the successfully indexed documents in the body

BULK

List or Collection of any type that is already accepted (XContentBuilder, Map, byte[], String)

Camel 2.15: Adds content to an index and returns the BulkResponse object in the body

SEARCH

Map or SearchRequest Object

Camel 2.15: search the content with the map of query string

MULTIGET

List of MultigetRequest.Item object

Camel 2.17: retrieves the specified indexes, types etc. in MultigetRequest and returns a MultigetResponse object in the body

EXISTS

Index name as header

Camel 2.17: Returns a Boolean object in the body
UPDATEMap, String, byte[] or XContentBuilder content to updateCamel 2.17: Updates content to an index and returns the content's indexId in the body.

Index Example

Below is a simple INDEX example

+

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 client guide for more details.

Endpoint Options

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)

name

descrip tion

operation

required, indicates the operation to perform

indexName

the name of the index to act against

indexType

the type of the index to act against

ip

the TransportClient remote host ip to use Camel 2.12

port

the TransportClient remote port to use (defaults to 9300) Camel 2.12

transportAddresses

comma separated list with ip:port formatted remote transport addresses to use Camel 2.16

Options ip and port must be left blank for transportAddresses to be considered instead.

consistencyLevel

the write consistency level to use with INDEX and BULK operations (can be any of ONE, QUORUM, ALL or DEFAULT) Camel 2.16

replicationType

the replication type to use with INDEX and BULK operations (can be any of SYNC, ASYNC or DEFAULT) Camel 2.16

From version 2.17 replicationType option has been removed, since from elasticsearch 2.0.0 the async replication has been removed.

parent

optionally used with INDEX operations for Elasticsearch Parent-Child relationships to specify the ID of the parent record Camel 2.16.1 / 2.17.0

clientTransportSniff

From Camel 2.17 Define if the client is allowed to sniff the rest of the cluster

Message O perations

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.

operation

message body

description

INDEX

Map, String, byte[] or XContentBuilder content to index

adds content to an index and returns the content's indexId in the body.

Camel 2.15, you can set the indexId by setting the message header with the key "indexId".

GET_BY_ID

index id of content to retrieve

retrieves the specified index and returns a GetResult object in the body

DELETE

index id of content to delete

deletes the specified indexId and returns a DeleteResult object in the body

BULK_INDEX

List or Collection of any type that is already accepted (XContentBuilder, Map, byte[], String)

< strong>Camel 2.14, adds content to an index and return a List of the id of the successfully indexed documents in the body

BULK

List or Collection of any type that is already accepted (XContentBuilder, Map, byte[], String)

Camel 2.15: Adds content to an index and returns the BulkResponse object in the body

SEARCH

Map or SearchRequest Object

Camel 2.15: search the content with the map of query string

MULTIGET

List of MultigetRequest.Item object

Camel 2.17: retrieves the specified indexes, types etc. in MultigetRequest and returns a MultigetResponse object in the body

MULTISEARCH

List of SearchRequest object

Camel 2.17: search for parameters specified in MultiSearchRequest and returns a MultiSearchResponse object in the body

EXISTS

Index name as header

Camel 2.17: Returns a Boolean object in the body
UPDATEMap, String, byte[] or XContentBuilder content to updateCamel 2.17: Updates content to an index and returns the content's indexId in the body.

Index Example

Below is a simple INDEX example