Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Since 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)

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

Since Camel 2.15,  camel just return the whole BulkResponse in the body.

Index Example

Below is a simple INDEX example

...