Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated per CAMEL-5071

...

The following Solr operations are currently supported. Simply set an exchange header with a key of "SolrOperation" and a value set to one of the following. Some operations also require the message body to be set.

operation

message body

description

INSERT/INSERT_STREAMING

n/a

adds an index using message headers (must be prefixed with "SolrField.")

INSERT/INSERT_STREAMING

File

adds an index using the given File (using ContentStreamUpdateRequest)

INSERT/INSERT_STREAMING

SolrInputDocument

Camel 2.10 adds an updates index based on the given SolrInputDocument

INSERT_STREAMINGn/a

Camel 2.10 uses the StreamingUpdateSolrServer to add an index using message headers (must be prefixed with "SolrField.")

INSERT_STREAMING

FileString XML

Camel 2.10 uses the StreamingUpdateSolrServer to add an index using the given File (using ContentStreamUpdateRequest)

INSERT_STREAMING

SolrInputDocument

Camel 2.10 uses the StreamingUpdateSolrServer to add an index updates index based on the given XML (must follow SolrInputDocument format)

ADD_BEAN

bean instance

adds an index based on values in an annotated bean

DELETE_BY_ID

index id to delete

delete a record by ID

DELETE_BY_QUERY

query string

delete a record by a query

COMMIT

n/a

performs a commit on any pending index changes

ROLLBACK

n/a

performs a rollback on any pending index changes

OPTIMIZE

n/a

performs a commit on any pending index changes and then runs the optimize command

...