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.

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)

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

...